Browse files

Merge pull request #10052 from neerajdotname/stdout-in-log

write sql queries to terminal
  • Loading branch information...
2 parents 196af50 + e267c0e commit 1b6ac82c0feb77dc483bd176650413f28812f994 @rafaelfranca rafaelfranca committed Apr 2, 2013
View
4 guides/bug_report_templates/active_record_gem.rb
@@ -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|
View
4 guides/bug_report_templates/active_record_master.rb
@@ -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 1b6ac82

Please sign in to comment.