Merge pull request #691 from kbrock/bin_setup

bin/console for testing
This commit is contained in:
Keenan Brock 2024-10-23 20:14:57 -04:00 committed by GitHub
commit e8e0bb1ebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 20 additions and 1 deletions

View File

@ -4,7 +4,7 @@ source 'https://rubygems.org'
gemspec
gem "activerecord", "~> 6.1.7"
gem "activerecord", "~> 7.2"
gem "mysql2"
gem "pg"
gem "sqlite3", "~> 1.6.9"

13
bin/console Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require "bundler/setup"
require "active_support"
require "active_record"
require "ancestry"
# models for local testing
# Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
require "irb"
IRB.start(__FILE__)

6
bin/setup Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
psql -c 'create database ancestry_test;' || echo 'db exists'
mysql -e 'CREATE SCHEMA IF NOT EXISTS 'ancestry_test';'
#MAKE="make -j $(nproc)" bundle install --gemfile gemfiles/gemfile_61.gemfile