Skip to content

Commit

Permalink
Merge pull request #691 from kbrock/bin_setup
Browse files Browse the repository at this point in the history
bin/console for testing
  • Loading branch information
kbrock authored Oct 24, 2024
2 parents 4d26788 + 9ea121d commit e8e0bb1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 13 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
@@ -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 changes: 6 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e8e0bb1

Please sign in to comment.