Permalink
Browse files

write sql queries to terminal

  • Loading branch information...
1 parent 9030015 commit e267c0ee5e59812359b33676454178e788f798ec Neeraj Singh committed Apr 2, 2013
@@ -1,10 +1,12 @@
# Activate the gem you are reporting the issue against.
gem 'activerecord', '3.2.11'
require 'active_record'
-require "minitest/autorun"
+require 'minitest/autorun'
+require 'logger'
# This connection will do for database-independent bug reports.
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
+ActiveRecord::Base.logger = Logger.new(STDOUT)
ActiveRecord::Schema.define do
create_table :posts do |t|
@@ -12,10 +12,12 @@
Bundler.setup(:default)
require 'active_record'
-require "minitest/autorun"
+require 'minitest/autorun'
+require 'logger'
# This connection will do for database-independent bug reports.
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
+ActiveRecord::Base.logger = Logger.new(STDOUT)
ActiveRecord::Schema.define do
create_table :posts do |t|

0 comments on commit e267c0e

Please sign in to comment.