B Seven
B Seven

Reputation: 45943

How to update test database in Rails 3?

I added an entry to the yml fixture for a model. Then rails console test. But the new record is not in the database.

How do you "update" the test database to access it in rails console?

Working in Rails 3.0.7, using built-in unit test.

Thanks.

Upvotes: 4

Views: 348

Answers (1)

apneadiving
apneadiving

Reputation: 115541

I'd say:

bundle exec rake db:fixtures:load RAILS_ENV=test

Upvotes: 6

Related Questions