method
new
new(direction, migrations, target_version = nil)
public
Hide source
# File activerecord/lib/active_record/migration.rb, line 1179 def initialize(direction, migrations, target_version = nil) @direction = direction @target_version = target_version @migrated_versions = nil @migrations = migrations validate(@migrations) ActiveRecord::SchemaMigration.create_table ActiveRecord::InternalMetadata.create_table end