1 2 3 4 5 6 7 8 9 10 11 12 13
puts "Using native PostgreSQL" require "active_record" require 'logger' ENV['ADAPTER'] = 'postgresql' ActiveRecord::Base.configurations = { 'unit' => { :adapter => 'postgresql', :encoding => 'utf8', :database => 'arel_unit', } }