I have deployed my rails app to Linode VPS, using capistrano but thaere is a little snag which I dont know how to solve:
Capistrano output during deployment:
== CreateCurrencies: migrating
-- create_table(:currencies)
-> 0.0074s
== CreateCurrencies: migrated (0.0075s)
Capistrano has created the table currencies, and I can access it on my live server.
I also have a rake task defined as follows:
namespace :rate do
task :update => :environment do
#Modify Currencies table.
end
end
Now if I run
rake rate:update
On development machine: Everything works fine. On production machine: It gives the below error
rake aborted!
Could not find table 'currencies'
Any suggestions on how to solve this?