diff options
author | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-09-06 21:44:08 +0530 |
---|---|---|
committer | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-09-06 21:44:08 +0530 |
commit | 5663f06656f0c2e8f559e1c137794b5f48c1b8ce (patch) | |
tree | bc6dfa7fdd8ab5eafc56c37fdef70d806571f2f9 /activerecord/test | |
parent | da2f61947db287b5ba0343905da9316eecfd43f3 (diff) | |
download | rails-5663f06656f0c2e8f559e1c137794b5f48c1b8ce.tar.gz rails-5663f06656f0c2e8f559e1c137794b5f48c1b8ce.tar.bz2 rails-5663f06656f0c2e8f559e1c137794b5f48c1b8ce.zip |
disable migrations logging while running test cases for AR schema tests
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/ar_schema_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/ar_schema_test.rb b/activerecord/test/cases/ar_schema_test.rb index 3f5858714a..8e3d22eb57 100644 --- a/activerecord/test/cases/ar_schema_test.rb +++ b/activerecord/test/cases/ar_schema_test.rb @@ -6,6 +6,7 @@ if ActiveRecord::Base.connection.supports_migrations? self.use_transactional_fixtures = false def setup + ActiveRecord::Migration.verbose = false @connection = ActiveRecord::Base.connection ActiveRecord::SchemaMigration.drop_table end @@ -16,6 +17,7 @@ if ActiveRecord::Base.connection.supports_migrations? @connection.drop_table :nep_schema_migrations rescue nil @connection.drop_table :has_timestamps rescue nil ActiveRecord::SchemaMigration.delete_all rescue nil + ActiveRecord::Migration.verbose = true end def test_has_no_primary_key |