We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2abd4c7 commit f20355aCopy full SHA for f20355a
test/rake_test_support.rb
@@ -122,10 +122,12 @@ def new_application
122
# (Test) Helpers :
123
124
def create_schema_migrations_table(connection = ActiveRecord::Base.connection)
125
- schema_migration = ActiveRecord::SchemaMigration.table_name
126
- return if connection.data_source_exists?(schema_migration)
127
- connection.create_table(schema_migration, :id => false) do |t|
128
- t.column :version, :string, :null => false
+ schema_migration = connection.schema_migration
+
+ return if schema_migration.table_exists?
129
+ connection.create_table(schema_migration.table_name, id: false) do |t|
130
+ t.column :version, :string, null: false
131
end
132
133
0 commit comments