Skip to content

Commit 6d55eb9

Browse files
Use filename when printing pending migrations
Filename provides the path, whereas basename does not. It makes sense to show the full filename, since migrations can be stored across directories in multi-db apps.
1 parent 494e89b commit 6d55eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/migration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def detailed_migration_message(pending_migrations)
160160
message += "You have #{pending_migrations.size} pending #{pending_migrations.size > 1 ? 'migrations:' : 'migration:'}\n\n"
161161

162162
pending_migrations.each do |pending_migration|
163-
message += "#{pending_migration.basename}\n"
163+
message += "#{pending_migration.filename}\n"
164164
end
165165

166166
message

0 commit comments

Comments
 (0)