SyntaxFix
Write A Post
Hire A Developer
Questions
You can also change the index name in column definitions within a create_table block (such as you get from the migration generator).
create_table
create_table :studies do |t| t.references :user, index: {:name => "index_my_shorter_name"} end