Skip to content

Instantly share code, notes, and snippets.

@obelich
Created June 22, 2018 17:51
Show Gist options
  • Save obelich/fdd6b9934b2b0ceeb0f1c466eb8aeddd to your computer and use it in GitHub Desktop.
Save obelich/fdd6b9934b2b0ceeb0f1c466eb8aeddd to your computer and use it in GitHub Desktop.
Elimina la llave foranea de una tabla
remove_foreign_key :$Table$, name: "$Fk_name$"
remove_index :$Table$, column: :$column_name$
remove_column :$Table$, :$column_name$, :integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment