Sha256: 87b8e39eb9c822795178983e2e7860bf407e887fa9486144d0c328f9b61f98fc

Contents?: true

Size: 889 Bytes

Versions: 1

Compression:

Stored size: 889 Bytes

Contents

require "chinook_database/version"

require 'sqlite3'
require 'active_record'
require_relative '../lib/chinook_database/models/album'
require_relative '../lib/chinook_database/models/artist'
require_relative '../lib/chinook_database/models/customer'
require_relative '../lib/chinook_database/models/employee'
require_relative '../lib/chinook_database/models/genre'
require_relative '../lib/chinook_database/models/invoice'
require_relative '../lib/chinook_database/models/invoice_line'
require_relative '../lib/chinook_database/models/media_type'
require_relative '../lib/chinook_database/models/play_list'
require_relative '../lib/chinook_database/models/track'

module ChinookDatabase
  def self.path
    File.expand_path('../db/Chinook.sqlite', __FILE__)
  end

  def self.connect
    ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ChinookDatabase.path
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chinook_database-0.1.3 lib/chinook_database.rb