From ed9e72a56d43a1e56ad203b7e4451d0d217e8ed2 Mon Sep 17 00:00:00 2001 From: Stephen Date: Wed, 3 Jan 2024 15:18:50 +1000 Subject: [PATCH] Silence activerecord migration stdout messages --- beef | 1 + spec/spec_helper.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/beef b/beef index 7c997c867..d7790fc99 100755 --- a/beef +++ b/beef @@ -203,6 +203,7 @@ if Gem.loaded_specs['otr-activerecord'].version > Gem::Version.create('1.4.2') end # Migrate (if required) +ActiveRecord::Migration.verbose = false # silence activerecord migration stdout messages context = ActiveRecord::Migration.new.migration_context if context.needs_migration? ActiveRecord::Migrator.new(:up, context.migrations, context.schema_migration, context.internal_metadata).migrate diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 62d118ae1..af0cb3cd4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -53,6 +53,7 @@ end ActiveRecord::Schema.verbose = false # Migrate (if required) +ActiveRecord::Migration.verbose = false # silence activerecord migration stdout messages context = ActiveRecord::Migration.new.migration_context if context.needs_migration? ActiveRecord::Migrator.new(:up, context.migrations, context.schema_migration, context.internal_metadata).migrate