When running separate databases for different environments (i.e. development, test) on the same machine, you will likely specify a different database name in database.yml. If you then run migrations in a different ENV, you will get schema changes as the database name will be dumped to the schema comments.
This change strips the database name from the schema, leaving only the table name.
When running separate databases for different environments (i.e. development, test) on the same machine, you will likely specify a different database name in
database.yml
. If you then run migrations in a different ENV, you will get schema changes as the database name will be dumped to the schema comments.This change strips the database name from the schema, leaving only the table name.
Before:
Afteer: