Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin/console for testing #691

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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