Skip to content

Instantly share code, notes, and snippets.

@CarolHsu
Last active July 31, 2019 03:13
Show Gist options
  • Save CarolHsu/5e00d6604baee3c0d10279aad1c4f48e to your computer and use it in GitHub Desktop.
Save CarolHsu/5e00d6604baee3c0d10279aad1c4f48e to your computer and use it in GitHub Desktop.
# delete column
ActiveRecord::Migration.remove_column :table_name, :column_name
# drop table
ActiveRecord::Migration.drop_table :table_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment