Skip to content

Instantly share code, notes, and snippets.

@softwaregravy
Created August 5, 2011 18:06
Show Gist options
  • Save softwaregravy/1128135 to your computer and use it in GitHub Desktop.
Save softwaregravy/1128135 to your computer and use it in GitHub Desktop.
Add an index
add_index :table, :column, :unique => true
remove_index :table, :column
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment