Silence activerecord migration stdout messages
This commit is contained in:
1
beef
1
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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user