Sha256: 646425300b57e88d595d93322cc5f29d41c0d1f92f8cb74e17691c61c8fc3a5f

Contents?: true

Size: 303 Bytes

Versions: 4

Compression:

Stored size: 303 Bytes

Contents

require 'active_record'
require_relative './app/models/movie'

def db_configuration
  db_configuration_file = File.join(File.expand_path('..', __FILE__), '.', 'db', 'config.yml')
  YAML.load(File.read(db_configuration_file))
end

ActiveRecord::Base.establish_connection(db_configuration["development"])

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
standalone_migrations-8.0.0 example/boot.rb
standalone_migrations-7.2.0 example/boot.rb
standalone_migrations-7.1.3 example/boot.rb
standalone_migrations-7.1.2 example/boot.rb