Skip to content

Commit 1b795f5

Browse files
authored
Merge pull request rails#27171 from kamipo/suppress_migration_message
Suppress migration message in the test
2 parents f23b327 + f8741a1 commit 1b795f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

activerecord/test/cases/adapters/postgresql/uuid_test.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ def test_schema_dumper_for_uuid_primary_key_default
236236

237237
if ActiveRecord::Base.connection.supports_pgcrypto_uuid?
238238
def test_schema_dumper_for_uuid_primary_key_default_in_legacy_migration
239+
@verbose_was = ActiveRecord::Migration.verbose
240+
ActiveRecord::Migration.verbose = false
241+
239242
migration = Class.new(ActiveRecord::Migration[4.2]) do
240243
def version; 101 end
241244
def migrate(x)
@@ -248,6 +251,7 @@ def migrate(x)
248251
assert_match(/\bcreate_table "pg_uuids_4", id: :uuid, default: -> { "uuid_generate_v4\(\)" }/, schema)
249252
ensure
250253
drop_table "pg_uuids_4"
254+
ActiveRecord::Migration.verbose = @verbose_was
251255
end
252256
end
253257
end

0 commit comments

Comments
 (0)