Sha256: 9511f7d3467c776534369143040c1017e6b1e2f913a197b6f12f766cb38023d2

Contents?: true

Size: 408 Bytes

Versions: 11

Compression:

Stored size: 408 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

11 entries across 11 versions & 1 rubygems

Version Path
schema_plus-1.4.0 spec/connections/mysql/connection.rb
schema_plus-1.3.3 spec/connections/mysql/connection.rb
schema_plus-1.3.2 spec/connections/mysql/connection.rb
schema_plus-1.3.1 spec/connections/mysql/connection.rb
schema_plus-1.3.0 spec/connections/mysql/connection.rb
schema_plus-1.2.0 spec/connections/mysql/connection.rb
schema_plus-1.1.2 spec/connections/mysql/connection.rb
schema_plus-1.1.1 spec/connections/mysql/connection.rb
schema_plus-1.1.0 spec/connections/mysql/connection.rb
schema_plus-1.0.1 spec/connections/mysql/connection.rb
schema_plus-1.0.0 spec/connections/mysql/connection.rb