Skip to content

Instantly share code, notes, and snippets.

@davideghz
Created March 13, 2018 10:01
Show Gist options
  • Select an option

  • Save davideghz/ba617250dc013d2f27ffe5e0b00464fc to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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