Description
config/deployments/development/database.yml configures the development database as tiny_mon_production:
development: &MYSQL_DB
database: tiny_mon_production # should be tiny_mon_development
Impact
- Developers running
rake db:reset or rake db:migrate in the development environment operate on a database named tiny_mon_production, creating false confidence that they're working in a production-like state.
- Any script or tooling that checks for the string
_production in the database URL to guard against accidental production operations will be confused.
- New contributors may accidentally migrate/seed their local database thinking they're manipulating production.
Suggested approach
Rename to tiny_mon_development:
database: tiny_mon_development
Effort: trivial
Description
config/deployments/development/database.ymlconfigures the development database astiny_mon_production:Impact
rake db:resetorrake db:migratein the development environment operate on a database namedtiny_mon_production, creating false confidence that they're working in a production-like state._productionin the database URL to guard against accidental production operations will be confused.Suggested approach
Rename to
tiny_mon_development:Effort: trivial