#!/usr/bin/env ruby require "bundler/setup" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. # (If you use this, don't forget to add pry to your Gemfile!) # require "pry" # Pry.start require 'logger' require 'active_record' load File.expand_path('../connect_db.rb', __FILE__) require "active_record/mod_sql_log_subscriber" require File.expand_path('../../db/user.rb', __FILE__) ::ActiveRecord::Base.logger = ::Logger.new(STDOUT, level: :info) ::ActiveRecord::ModSqlLogSubscriber.attach_to(:active_record) require "irb" IRB.start(__FILE__)