Created
November 13, 2023 21:32
-
-
Save casperbrike/99dd421f6c0fd44d2367f0a2a7a8a74f to your computer and use it in GitHub Desktop.
Cleanup schema.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git restore db/schema.rb | |
pg_dump -U username -d database_name -a -F t -f data.dump | |
rails db:drop | |
rails db:create | |
rails db:schema:load | |
rails db:migrate | |
pg_restore -U username -d database_name data.dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment