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

table does not exist #67

Closed RST-J closed 8 years ago

RST-J commented 9 years ago

Unfortunately there is no more output there which I could provide. If you give me a hint, I'll look into the details.

I suspect there is some problem with has_many through: associations, maybe in combination with STI, as Team is a subclass of another model.

plentz commented 8 years ago

Hi @RST-J, sorry for taking so long to reply. I just released 2.1 which I think fixes this problem. Since it was so long ago, I think that you can't even test the same scenario, but if you can, please reopen the issue and we can work together to find a fix for this :)

RST-J commented 8 years ago

The problem still exists. In the meantime I probably got a better understanding about reflections and relations in general - I'll try to come up with a MWE or maybe even a fix.