Method: ROM::SQL::Migration#auto_migrate!

Defined in:
lib/rom/sql/migration.rb

#auto_migrate!(conf, options = EMPTY_HASH) ⇒ Object


144
145
146
147
148
149
150
# File 'lib/rom/sql/migration.rb', line 144

def auto_migrate!(conf, options = EMPTY_HASH)
  schemas = conf.relation_classes(self).map do |klass|
    klass.schema_proc.call.finalize_attributes!(gateway: self)
  end

  migrator.auto_migrate!(self, schemas, options)
end