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 .
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 .
There is no need to run migrate on the test db.
rake db:test:prepare
will create or update the test database to the same state as the
development db.