Method: Waves::Layers::ORM.latest_migration_version
- Defined in:
- lib/layers/orm/migration.rb
.latest_migration_version ⇒ Object
Uses the migration files in the migration directory to determine the highest numbered existing migration.
45 46 47 48 |
# File 'lib/layers/orm/migration.rb', line 45 def self.latest_migration_version l = migration_files.last l ? File.basename(l).to_i : nil end |