Skip to content

Instantly share code, notes, and snippets.

@davideghz
Created March 13, 2018 10:01
Show Gist options
  • Save davideghz/ba617250dc013d2f27ffe5e0b00464fc to your computer and use it in GitHub Desktop.
Save davideghz/ba617250dc013d2f27ffe5e0b00464fc to your computer and use it in GitHub Desktop.
delete orphan migration
rails dbconsole
delete from schema_migrations where version='<MIGRATION_ID>';
enjoy :)
@davideghz
Copy link
Author

This will only delete the reference to the migration; remember to align the DB manually ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment