You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running change_column in a migration, indexes are dropped first and then recreated. However, the recreated index doesn't have the same flags as the original one. Here is a bash script that sets up a new rails app, creates a unique column, and changes the length of the column. Notice that the index is no longer unique:
When running change_column in a migration, indexes are dropped first and then recreated. However, the recreated index doesn't have the same flags as the original one. Here is a bash script that sets up a new rails app, creates a unique column, and changes the length of the column. Notice that the index is no longer unique:
Here is the interesting part of the output if you don't wish to run the script:
Thanks!
The text was updated successfully, but these errors were encountered: