whats here wrong?
i understand table members is not exist in alldataserver_test, but
why?
here is a mistake with migration i think, can someone help me?
it means that there is a fixtures file called members.yml so rails
helpfully tries to load it into your test database but there is no
such table.
thanks, i know, in test database are not tables. my question is: why are not
the tables for test database create?
i did database migration and it creates only tables for development database but
not for my test database. where can be the problem?
I find the rake db:migrate commands to be less than comprehensive here. Sometimes one rake command understands testing, but another one does not.
In this case, I always find myself entering:
rake RAILS_ENV=test db:migrate
That uses rake's ability to push its command line options with = into environmental variables. Then the migrator uses the test: version in database.yml.
Hello Guy wrote:
> thanks, i know, in test database are not tables. my question is: why are
> not
> the tables for test database create?
> i did database migration and it creates only tables for development
> database but
> not for my test database. where can be the problem?
I find the rake db:migrate commands to be less than comprehensive here.
Sometimes one rake command understands testing, but another one does not.
If you run
rake
to run your unit tests, that should clone the structure from the
development database to the test one.