Sha256: 31b411de791d0ba55d91b02d93293774b0bd0fbeea10c720877f953c03783794

Contents?: true

Size: 407 Bytes

Versions: 7

Compression:

Stored size: 407 Bytes

Contents

print "Using MySQL\n"
require 'logger'

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

ActiveRecord::Base.configurations = {
  'schema_plus' => {
    :adapter => 'mysql',
    :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/mysql/connection.rb
schema_plus-1.6.0 spec/connections/mysql/connection.rb
schema_plus-1.5.3 spec/connections/mysql/connection.rb
schema_plus-1.5.2 spec/connections/mysql/connection.rb
schema_plus-1.5.1 spec/connections/mysql/connection.rb
schema_plus-1.5.0 spec/connections/mysql/connection.rb
schema_plus-1.4.1 spec/connections/mysql/connection.rb