Skip to content

Code quality: development database.yml uses tiny_mon_production as database name #49

@tkadauke

Description

@tkadauke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions