class MyDataTest < ActiveSupport::TestCase
def test_truth
assert true
end
end
this should ok without failures or errors. but it failure:
Error:
test_truth(MyDataTest):
ActiveRecord::StatementInvalid: Mysql::Error: Table
‘alldataserver_test.members’ doesn’t exist: DELETE FROM members
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?
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.
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.
Fred
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?
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.