1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Forgot to set Migration.verbose at f8d9a51949 💣

This commit is contained in:
Akira Matsuda 2014-08-30 11:45:58 +09:00
parent 365aa654d8
commit f0737d80d7

View file

@ -131,7 +131,7 @@ module ActiveRecord
verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
version = ENV["VERSION"] ? ENV["VERSION"].to_i : nil version = ENV["VERSION"] ? ENV["VERSION"].to_i : nil
scope = ENV['SCOPE'] scope = ENV['SCOPE']
verbose_was = Migration.verbose verbose_was, Migration.verbose = Migration.verbose, verbose
Migrator.migrate(Migrator.migrations_paths, version) do |migration| Migrator.migrate(Migrator.migrations_paths, version) do |migration|
scope.blank? || scope == migration.scope scope.blank? || scope == migration.scope
end end