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:
commit
1b6ac82c0f
2 changed files with 6 additions and 2 deletions
|
@ -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 @@ 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|
|
||||
|
|
Loading…
Reference in a new issue