Module: Sequent::Migrations::Migration::ClassMethods

Defined in:
lib/sequent/migrations/functions.rb

Instance Method Summary collapse

Instance Method Details

#create(record_class, version) ⇒ Object



7
8
9
10
11
# File 'lib/sequent/migrations/functions.rb', line 7

def create(record_class, version)
  migration = new(record_class)
  migration.version = version
  migration
end