Skip to content

Instantly share code, notes, and snippets.

@miligraf
Last active January 22, 2016 16:41
Show Gist options
  • Save miligraf/c626017ca0b48d5e5f3f to your computer and use it in GitHub Desktop.
Save miligraf/c626017ca0b48d5e5f3f to your computer and use it in GitHub Desktop.
Ruby on Rails database table index naming convention
Rails, or Active Record in this case, only identifies indexes with the following name pattern:
index_<table_name>_on_<column_name>
If name is different than that, it will completely ignore the index and won't use it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment