Sha256: 34ea4feb4ef8488ff399ecfef2d192e042ba564c7d74fd644a3de902c780e606
Contents?: true
Size: 478 Bytes
Versions: 11
Compression:
Stored size: 478 Bytes
Contents
require 'active_support/logger' module ARTest def self.connection_name ENV['ARCONN'] || config['default_connection'] end def self.connection_config config['connections'][connection_name] end def self.connect puts "Using #{connection_name}" ActiveRecord::Base.logger = ActiveSupport::Logger.new("debug.log", 0, 100 * 1024 * 1024) ActiveRecord::Base.configurations = connection_config ActiveRecord::Base.establish_connection :arunit end end
Version data entries
11 entries across 11 versions & 3 rubygems