Skip to content

Commit

Permalink
Merge pull request rails#12962 from kamipo/call_initialize_schema_mig…
Browse files Browse the repository at this point in the history
…rations_table_from_migration

Use `SchemaStatements#initialize_schema_migrations_table` instead of `ActiveRecord::SchemaMigration.create_table`.
  • Loading branch information
fxn committed Nov 21, 2013
2 parents f71cbb8 + 5d788e9 commit d82588e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ def initialize(direction, migrations, target_version = nil)

validate(@migrations)

ActiveRecord::SchemaMigration.create_table
Base.connection.initialize_schema_migrations_table
end

def current_version
Expand Down

0 comments on commit d82588e

Please sign in to comment.