plentz / lol_dba

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

Fix polymorphic associations generating invalid migrations #69

Closed AndrewVos closed 8 years ago

AndrewVos commented 8 years ago

Fixes #64

plentz commented 8 years ago

can you create a test case to reproduce it? I will be even more super duper grateful :)

plentz commented 8 years ago

thanks for the report @AndrewVos . I've managed to fix it in the root of the problem: f6641e4