On my Mac, my Rails project is using SQLite3 with a 64-character index name. I need to work on it in an Ubuntu environment. However, when I try to run rake db:setup
, I get an error that my 64-character named index is too long, that SQLite3 only supports up to 62 characters for an index name.
So I figure I'll create a migration to shorten the name of that index. But when I run rake db:setup
again, I just get the same error as that new migration isn't yet run.
How can I reduce the length of that index name?