Index Name Is Too Long Rails

[Solved] Index Name Is Too Long Rails | Ruby - Code Explorer | yomemimo.com
Question : rails index name too long

Answered by : disturbed-dingo-qjlhqu119bp3

t.index %i[idex_columns], name: 'custom_index_name'

Source : | Last Update : Thu, 30 Apr 20

Question : index name is too long rails

Answered by : mot

t.index %i[idex_columns], name: 'SHORTER_NAME'
# or
add_index :your_table, %i[:index_columns], "SHORTER_NAME"

Source : | Last Update : Mon, 01 Aug 22

Answers related to index name is too long rails

Code Explorer Popular Question For Ruby