Permalink
Browse files

Merge pull request #12962 from kamipo/call_initialize_schema_migratio…

…ns_table_from_migration

Use `SchemaStatements#initialize_schema_migrations_table` instead of `ActiveRecord::SchemaMigration.create_table`.
  • Loading branch information...
2 parents f71cbb8 + 5d788e9 commit d82588ee4756b03025813b3997f4db171ee0fcdc @fxn fxn committed Nov 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/migration.rb
@@ -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

0 comments on commit d82588e

Please sign in to comment.