aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-11-25 07:09:32 +1030
committerGitHub <noreply@github.com>2016-11-25 07:09:32 +1030
commit1b795f5f0ba01ea0a5c3b9063059ad90ead41b13 (patch)
tree034ff926a75e9ec2ba087217aeb102152ca31c6d
parentf23b327a4682dd05f1b1b76540a926a4e81ab3e1 (diff)
parentf8741a1e4a9a0bd16488fb283c2dba3e88740b4a (diff)
downloadrails-1b795f5f0ba01ea0a5c3b9063059ad90ead41b13.tar.gz
rails-1b795f5f0ba01ea0a5c3b9063059ad90ead41b13.tar.bz2
rails-1b795f5f0ba01ea0a5c3b9063059ad90ead41b13.zip
Merge pull request #27171 from kamipo/suppress_migration_message
Suppress migration message in the test
-rw-r--r--activerecord/test/cases/adapters/postgresql/uuid_test.rb4
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 680ca4934c..abc27c2204 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
end
end