Class: Pragma::Migration::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/pragma/migration/repository.rb

Overview

Repositories are collections of API versions.

Your API should have one migration repository per major version. This repository will contain all the minor versions of your API, each with its own collection of migrations.

Class Method Summary collapse

Class Method Details

.sorted_versionsArray<Version>

Returns a sorted collection of API versions.

Note that the array returned by this method is a duplicate of the original, so any manipulations will not be applied to the repository's collection.


17
18
19
# File 'lib/pragma/migration/repository.rb', line 17

def sorted_versions
  versions.dup
end