diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-11-25 04:16:20 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-11-25 04:16:20 +0900 |
commit | f8741a1e4a9a0bd16488fb283c2dba3e88740b4a (patch) | |
tree | d63557c65befd8445564b966eff412b4880264cc /activerecord | |
parent | 3b13761458d892c050ee10454c19d17638154c5a (diff) | |
download | rails-f8741a1e4a9a0bd16488fb283c2dba3e88740b4a.tar.gz rails-f8741a1e4a9a0bd16488fb283c2dba3e88740b4a.tar.bz2 rails-f8741a1e4a9a0bd16488fb283c2dba3e88740b4a.zip |
Suppress migration message in the test
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/uuid_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/uuid_test.rb b/activerecord/test/cases/adapters/postgresql/uuid_test.rb index ab0815631f..934fef41c0 100644 --- a/activerecord/test/cases/adapters/postgresql/uuid_test.rb +++ b/activerecord/test/cases/adapters/postgresql/uuid_test.rb @@ -236,6 +236,9 @@ class PostgresqlUUIDGenerationTest < ActiveRecord::PostgreSQLTestCase if ActiveRecord::Base.connection.supports_pgcrypto_uuid? def test_schema_dumper_for_uuid_primary_key_default_in_legacy_migration + @verbose_was = ActiveRecord::Migration.verbose + ActiveRecord::Migration.verbose = false + migration = Class.new(ActiveRecord::Migration[4.2]) do def version; 101 end def migrate(x) @@ -248,6 +251,7 @@ class PostgresqlUUIDGenerationTest < ActiveRecord::PostgreSQLTestCase assert_match(/\bcreate_table "pg_uuids_4", id: :uuid, default: -> { "uuid_generate_v4\(\)" }/, schema) ensure drop_table "pg_uuids_4" + ActiveRecord::Migration.verbose = @verbose_was end else end |