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.
1 parent 35bfb52 commit cdab538Copy full SHA for cdab538
activerecord/lib/active_record/migration.rb
@@ -1536,7 +1536,8 @@ def execute_migration_in_transaction(migration)
1536
return if down? && !migrated.include?(migration.version.to_i)
1537
return if up? && migrated.include?(migration.version.to_i)
1538
1539
- Base.logger.info "Migrating to #{migration.name} (#{migration.version})" if Base.logger
+ message = up? ? "Migrating to" : "Reverting"
1540
+ Base.logger.info "#{message} #{migration.name} (#{migration.version})" if Base.logger
1541
1542
ddl_transaction(migration) do
1543
migration.migrate(@direction)
0 commit comments