1 print "Using native MySQL\n"
4 require 'adapter_helper/mysql'
6 log_path = File.expand_path(File.join(File.dirname(__FILE__), %w[.. .. .. log]))
7 FileUtils.mkdir_p log_path
8 puts "Logging to #{log_path}/debug.log"
9 ActiveRecord::Base.logger = Logger.new("#{log_path}/debug.log")
11 # Adapter config setup in locals/database_connections.rb
12 connection_options = AdapterHelper::MySQL.load_connection_from_env
13 ActiveRecord::Base.establish_connection(connection_options)