Merge pull request #27171 from kamipo/suppress_migration_message

Suppress migration message in the test
This commit is contained in:
Matthew Draper 2016-11-25 07:09:32 +10:30 committed by GitHub
commit 1b795f5f0b
1 changed files with 4 additions and 0 deletions

View File

@ -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
end
end