petehamilton / citier

CITIER (Class Inheritance & Table Inheritance Embeddings for Rails) is a solution for simple Multiple Class Inheritance in Rails.
88 stars 24 forks source link

rake db:setup fails on fresh database #65

Open shuebner opened 11 years ago

shuebner commented 11 years ago

Hi all, when I clone my rails project on another computer and try to run "rake db:setup" or "rake db:schema:load" or "rake db:migrate" on a fresh database I get the following error:

citier -> Root Class citier -> table_name -> inquiries citier -> Non Root Class citier -> table_name -> boat_inquiries citier -> tablename (view) -> view_boat_inquiries rake aborted! Mysql2::Error: Table 'db_21431895n1.inquiries' doesn't exist: SHOW FULL FIELDS FROM inquiries

The table 'inquiries' is the root table of a citier MTI. It seems as if citier is examining the tables too early.

Thank you for your help.

If this has nothing to do with citier, I apologize for opening an issue.

Best regards Sven

shuebner commented 11 years ago

OK, I'm stupid. Turns out the error was caused by a scope, not citier.