1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

write sql queries to terminal
This commit is contained in:
Rafael Mendonça França 2013-04-02 09:04:04 -07:00
commit 1b6ac82c0f
2 changed files with 6 additions and 2 deletions

View file

@ -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 file

@ -12,10 +12,12 @@ require 'bundler'
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|