Skip to content

Commit

Permalink
bin/console for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Oct 24, 2024
1 parent 6cc9398 commit 9ea121d
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 9ea121d

Please sign in to comment.