Sha256: 3be1ad53089f5d2462f6a92a03f9c57e62190972c786e45a75bd6e72c2b98d9c
Contents?: true
Size: 600 Bytes
Versions: 5
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true require 'rubygems' require "active_record/railtie" require 'bundler/setup' require "migrations/create_users_migration.rb" require_relative '../lib/activerecord-analyze' ENV["DATABASE_URL"] ||= "postgresql://postgres:secret@localhost:5432/activerecord-analyze-test" RSpec.configure do |config| config.before(:suite) do ActiveRecord::Base.establish_connection( ENV.fetch("DATABASE_URL") ) @schema_migration = ActiveRecord::Base.connection.schema_migration ActiveRecord::Migrator.new(:up, [CreateUsers.new], @schema_migration).migrate end end
Version data entries
5 entries across 5 versions & 1 rubygems