Skip to content

Commit e8e0bb1

Browse files
authored
Merge pull request #691 from kbrock/bin_setup
bin/console for testing
2 parents 4d26788 + 9ea121d commit e8e0bb1

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
44

55
gemspec
66

7-
gem "activerecord", "~> 6.1.7"
7+
gem "activerecord", "~> 7.2"
88
gem "mysql2"
99
gem "pg"
1010
gem "sqlite3", "~> 1.6.9"

bin/console

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
require "bundler/setup"
5+
require "active_support"
6+
require "active_record"
7+
require "ancestry"
8+
9+
# models for local testing
10+
# Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
11+
12+
require "irb"
13+
IRB.start(__FILE__)

bin/setup

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
psql -c 'create database ancestry_test;' || echo 'db exists'
4+
mysql -e 'CREATE SCHEMA IF NOT EXISTS 'ancestry_test';'
5+
6+
#MAKE="make -j $(nproc)" bundle install --gemfile gemfiles/gemfile_61.gemfile

0 commit comments

Comments
 (0)