lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.
1.59k
stars
69
forks
source link
Polymorphic association generates migration with syntax error. #64
Hey there.
Using v 2.0.1 out of master. I have an Attachment model that is polymorphic with the following definition in the model:
Using
rake db:find_indexes
it generates the following migration suggestion:And when running
rake db:migrate
I get:I can look into it if you want to point me in the right direction...
Thanks!