We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56a9a0d + cdab538 commit 0b08a40Copy full SHA for 0b08a40
activerecord/lib/active_record/migration.rb
@@ -1538,7 +1538,8 @@ def execute_migration_in_transaction(migration)
1538
return if down? && !migrated.include?(migration.version.to_i)
1539
return if up? && migrated.include?(migration.version.to_i)
1540
1541
- Base.logger.info "Migrating to #{migration.name} (#{migration.version})" if Base.logger
+ message = up? ? "Migrating to" : "Reverting"
1542
+ Base.logger.info "#{message} #{migration.name} (#{migration.version})" if Base.logger
1543
1544
ddl_transaction(migration) do
1545
migration.migrate(@direction)
0 commit comments