I get the following error when I run rake db.seed, how can I fix it?
(I tried deleting seed.rb and recreating it, but it didn't work)
rake aborted! Don't know how to build task 'db.seed'
/Users/user/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/task_manager.rb:62:in
[]' /Users/user/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:149:in
invoke_task' /Users/user/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:106:inblock (2 levels) in top_level' /Users/user/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:106:in
each' /Users/user/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:106:inblock in top_level' /Users/user/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:115:in
run_with_threads' /Users/user/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:100:intop_level' /Users/user/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:78:in
block in run' /Users/user/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:176:instandard_exception_handling' /Users/user/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:75:in
run' /Users/user/.rbenv/versions/2.2.1/bin/rake:33:in `
Background information:
I am following a tutorial in which I have created a mock user in my db.seed file.
User.create! email: '[email protected]', password: 'password', password_confirmation: 'password'
Now when I run the command rake db:seed, I get the error above. How can I successfully run the command?
rake db:seed
orrake db.seed
? – rob