Permalink
Browse files

Merge pull request #8052 from schneems/schneems/silence-ar-query-in-m…

…iddleware

Don't log on pending migration check
  • Loading branch information...
2 parents 94aadf7 + 0fbdddd commit e46a8d89baa5b58f19cd84cf9a57beb4507e7d9c @rafaelfranca rafaelfranca committed Oct 28, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 activerecord/lib/active_record/migration.rb
@@ -342,7 +342,9 @@ def initialize(app)
end
def call(env)
- ActiveRecord::Migration.check_pending!
+ ActiveRecord::Base.logger.quietly do
+ ActiveRecord::Migration.check_pending!
+ end
@app.call(env)
end
end

0 comments on commit e46a8d8

Please sign in to comment.