Sha256: 3feb971a59f6aad0e2343c2b2db9b10dde02a942b8dc95f162aec49ba8556b3d

Contents?: true

Size: 414 Bytes

Versions: 6

Compression:

Stored size: 414 Bytes

Contents

config = {
  :username => 'blog',
  :password => ''
}

if RUBY_PLATFORM =~ /java/
  config.update({
    :adapter  => 'jdbc',
    :driver   => 'com.mysql.jdbc.Driver',
    :url      => 'jdbc:mysql://localhost:3306/weblog_development',
  })
else
  config.update({
    :adapter  => 'mysql',
    :database => 'weblog_development',
    :host     => 'localhost'
  })
end

ActiveRecord::Base.establish_connection(config)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ActiveRecord-JDBC-0.2.2 test/db/mysql.rb
ActiveRecord-JDBC-0.2.3 test/db/mysql.rb
ActiveRecord-JDBC-0.2.4 test/db/mysql.rb
ActiveRecord-JDBC-0.3 test/db/mysql.rb
ActiveRecord-JDBC-0.3.1 test/db/mysql.rb
ActiveRecord-JDBC-0.4 test/db/mysql.rb