From 5663f06656f0c2e8f559e1c137794b5f48c1b8ce Mon Sep 17 00:00:00 2001 From: Kuldeep Aggarwal Date: Sat, 6 Sep 2014 21:44:08 +0530 Subject: [PATCH] disable migrations logging while running test cases for AR schema tests --- activerecord/test/cases/ar_schema_test.rb | 2 ++ 1 file changed, 2 insertions(+) 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