rake db:fixtures:load fails
Closed this issue · 3 comments
mechcow commented
$ rake db:fixtures:load
(in /home/user/Downloads/asset_tracker)
rake aborted!
PGError: ERROR: relation "locations" does not exist
LINE 1: DELETE FROM "locations"
^
: DELETE FROM "locations"
(See full trace by running task with --trace)
Using Ubuntu Karmic Koala, ruby 1.8.7, libpgsql-ruby 0.8.0-1, postgresql 8.4
Any help as to what this means? Sorry I'm new to rails
mechcow commented
rake db:create finished successfully, and created an empty database
mechcow commented
Ahh ok I solved the problem. The instructions were missing the step "rake db:migrate" which should be performed after db:create before loading fixtures.
preston commented
Yeah, pretty much all RoR projects will require that. :)