thoughtbot / parity

Shell commands for development, staging, and production parity for Heroku apps
https://thoughtbot.com
MIT License
889 stars 57 forks source link

WIP: Drop ar_internal_metadata table on local restore if present #152

Closed geoffharcourt closed 6 years ago

geoffharcourt commented 6 years ago

Update We don't want to do this, we want to edit the environment instead.

This change updates the local development restore operation to drop the ar_internal_metadata table if it's present. This table is used by Rails 5.x to keep track of the environment, but does not need to be present for development. If it is present, users are unable to drop their local database with Rake due to a Rails check that aims to protect users from inadvertently dropping their production database.

Close #147