Skip to content

Drops development db if database connection is specified via DATABASE_URL #82

@damisul

Description

@damisul

In our project we don't use database.yml, instead we have DATABASE_URL environment variable (managed by dotenv in development).

With this setup squasher uses db specified in DATABASE_URL (development db) instead of creating new 'squasher' database and then drops it after squash complete.

Luckily in my case nothing serious was lost and I've recreated development db from backup, but I believe this is major bug, as it can cause dropping of wrong database.

It would be good to at least stop if DATABASE_URL environment variable is present.

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