diff options
author | Akira Matsuda <ronnie@dio.jp> | 2014-08-20 14:26:22 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2014-08-20 14:26:22 +0900 |
commit | 4b7ac2e83eb5776855b4abe02ca6060e73290e42 (patch) | |
tree | f44ee7130c4dbec1b600a389257f43151ceeb83d /activerecord/test | |
parent | 7422d2175d72f3e32f48f52ae4101cf4b6297c39 (diff) | |
download | rails-4b7ac2e83eb5776855b4abe02ca6060e73290e42.tar.gz rails-4b7ac2e83eb5776855b4abe02ca6060e73290e42.tar.bz2 rails-4b7ac2e83eb5776855b4abe02ca6060e73290e42.zip |
Drop schema_migrations table only when exists
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index f9d1edc340..034a0f567e 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -89,7 +89,7 @@ class MigrationTest < ActiveRecord::TestCase end def test_migration_detection_without_schema_migration_table - ActiveRecord::Base.connection.drop_table :schema_migrations + ActiveRecord::Base.connection.drop_table('schema_migrations') if ActiveRecord::Base.connection.table_exists?('schema_migrations') migrations_path = MIGRATIONS_ROOT + "/valid" old_path = ActiveRecord::Migrator.migrations_paths |