diff --git a/config/active_record.rb b/config/active_record.rb index 93f7a73..b6d01be 100644 --- a/config/active_record.rb +++ b/config/active_record.rb @@ -5,7 +5,7 @@ ActiveRecord::Base.logger = Logger.new(STDOUT) ActiveRecord::Migration.verbose = true -if ENV['RACK_ENV'] = 'development' +if ENV['RACK_ENV'] == 'development' dbconfig = YAML::load(File.open('config/database.yml')) ActiveRecord::Base.establish_connection dbconfig[ENV['RACK_ENV']] else