Why am I asked to run 'rake db:migrate RAILS_ENV=test'?

后端 未结 6 1730
逝去的感伤
逝去的感伤 2020-12-07 10:58

On Rails 4.0.0.rc1, Ruby 2.0.0, after I run a migration, I see the following error when I try to run a test through rspec:

/Users/peeja/.

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-07 11:57

    You can try to set variable BEFORE command, like this. This statement solved my problem:

    RAILS_ENV=test rake db:migrate
    

提交回复
热议问题