Sha256: ef8ba4c2a73a10aa272a1529b89383ed2ed0d91d8dbdf9d7891963fec0c1d568

Contents?: true

Size: 545 Bytes

Versions: 5

Compression:

Stored size: 545 Bytes

Contents

require 'logger'

ActiveRecord::Base.logger = Logger.new("debug.log")

# GRANT ALL PRIVILEGES ON storebasestiname_unittest.* to 'root'@'localhost';

# ActiveRecord::Base.configurations = {
#   'unittest' => {
#     :adapter  => 'mysql2',
#     :username => 'root',
#     :encoding => 'utf8',
#     :database => 'storebasestiname_unittest',
#   }
# }
ActiveRecord::Base.configurations = {
  'unittest' => {
    :adapter  => 'sqlite3',
    :database => 'db/storebasestiname_unittest.sql',
  }
}

ActiveRecord::Base.establish_connection 'unittest'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
store_base_sti_class-0.2.1 test/connection.rb
store_base_sti_class-0.2.0 test/connection.rb
store_base_sti_class-0.1.0 test/connection.rb
store_base_sti_class-0.0.2 test/connection.rb
store_base_sti_class-0.0.1 test/connection.rb