Sha256: 9c24d7792f849ff50077bc4ed11a264dac417e99539f8e0179621d1127b9dd7f

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 Bytes

Contents

print "Using MySQL2\n"
require 'logger'

ActiveRecord::Base.logger = Logger.new(File.open("mysql2.log", "w"))

ActiveRecord::Base.configurations = {
  'schema_plus' => {
    :adapter => 'mysql2',
    :database => 'schema_plus_test',
    :username => ENV.fetch('MYSQL_DB_USER', 'schema_plus'),
    :encoding => 'utf8',
    :min_messages => 'warning'
  }

}

ActiveRecord::Base.establish_connection :schema_plus

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
schema_plus-1.7.0 spec/connections/mysql2/connection.rb
schema_plus-1.6.0 spec/connections/mysql2/connection.rb
schema_plus-1.5.3 spec/connections/mysql2/connection.rb
schema_plus-1.5.2 spec/connections/mysql2/connection.rb
schema_plus-1.5.1 spec/connections/mysql2/connection.rb
schema_plus-1.5.0 spec/connections/mysql2/connection.rb
schema_plus-1.4.1 spec/connections/mysql2/connection.rb