I have the following skeleton for a rake task:
namespace :db do
desc “Populate database for first time based on export from AS/400
task :populate_from_export do
puts “hello world”
I want to be able to call User.find(:all) from my rake task but I am
getting the following error:
development database is not configured
If I get rid of the first line of the task I get the following error:
So how do I make a proper conneection and make my models accessible to
me for a rake task?
Thanks for your help :-).