How to prevent Rake test to call task db:test:prepare

后端 未结 3 1789
無奈伤痛
無奈伤痛 2020-12-15 09:54

Every time I want to run Rake test the task db:test:prepare is being called and it rebuilds my test environment database from schema.rb and migrations. What I would like to

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 10:26

    For some older version of rails - you can place Rake::Task['db:test:prepare'].clear at the end of your Rakefile

提交回复
热议问题