I am getting error while running rake db:migrate or rake db:bootstrap. Can anybody show me the best way to overcome this error?
rake aborted!
undefined method 'set_preference' for nil:NilClass
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hard to tell without a few more details (rails version? rvm or not?); I would always start checking whether the correct rails version is accessible and whether ‘bundle install’ was done.