This project is archived and is in readonly mode.
ENV['RAILS_ENV] modification not taken into account by database raske tasks
-
ronin-28893 (at lighthouseapp)
I reformat the example code :
desc 'Buggy environment switch' task :do_sth_in_test_env do # we are currently in dev env and # we have an empty test database ENV['RAILS_ENV'] = 'test' Rake::Task['db:fixtures:load'].invoke # result : no fixture in the test database end -
josh
- State changed from new to wontfix
I don't think we should revert back to relooking up the ENV info everything. a performance and design issue.