Sha256: 1586ea62a6b7ee31ea3d5da16fb2193c83a3e2e5dd6eb4f81a24b1b44f2ddd8e

Contents?: true

Size: 649 Bytes

Versions: 3

Compression:

Stored size: 649 Bytes

Contents

#!/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__)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_record-mod_sql_log_subscriber-0.2.0 bin/console
active_record-mod_sql_log_subscriber-0.1.2 bin/console
active_record-mod_sql_log_subscriber-0.1.1 bin/console