When migrations are pending to be run, Rails shows a warning message to users on the console. This lists the names of the pending migrations. While this is useful in single database applications, in a multi-database application migration file names may not be unique across databases.
First let’s create a dummy migration.
We will not run the migration yet.
Before
Now when we try to run the server or a test, Rails will show a warning message.
While this information is useful, it does not tell us where this migration file is located.
After
After this PR Rails shows the entire path.