[Rails] how to generate third table in test database
hi all,
has_and_belongs_to_many :cows
has_and_belongs_to_many :milkmans
i am using has_and_belongs_to_many in my app.I know this will create third table internally cows_milkmans in mysql database.
when i migrate develpoment database i have table cows_milkmans. Good no Problem till now.
Now a problem start When i migrate test database there is no such cows_milkmans table is present..
And we all know that has_and_belongs_to_many not generate any migrate file.
What should i do now?
how to generate third table in test database ?
If there is no solution than i know that i have to create cows_milkmans table manually .
Thanks
Fahim Babar Patel
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/_Zwg_Tlex5wJ.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home