I am totally new in Ruby and Ruby On Rail.
I have tables: iptvtests, configfields and resultfields.
both pairs are many to many relationship
- iptvtests and configfields
- iptvtests and resultfields
I created configfields_iptvtests and resultfields_iptvtests tables.
Also I put has_and_belongs_to_many in all three models.
When I tried to access configfields from iptvtest, I am fine.
However When I tried to access resultfields from iptvtest, I get an
error, which complain: “Mysql::Error: #42S02Table
‘iptv_development.iptvtests_resultfields’ doesn’t exist: SHOW FIELDS
- Do order matter?
- Do I need to create model for the tables
- How to solve my problem?
BTW, I did not use rake and migrate, but do I have to?
I am confused on how to use MySQL types in those migrate create classes.
Any help will be greatly appreciated!!!