Created
March 13, 2018 10:01
-
-
Save davideghz/ba617250dc013d2f27ffe5e0b00464fc to your computer and use it in GitHub Desktop.
delete orphan migration
This file contains 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
rails dbconsole | |
delete from schema_migrations where version='<MIGRATION_ID>'; | |
enjoy :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will only delete the reference to the migration; remember to align the DB manually ...