trying to use ActiveRecord with Sinatra, Migration fails question
- by David Lazar
Hi, running Sinatra 1.0, I wanted to add a database table to my program. In my Rakefile I have a task
task :environment do
ActiveRecord::Base.establish_connection(YAML::load(File.open('config/database.yml'))["development"])
end
I have a migration task in my namespace that calls the migration code:
namespace :related_products do…