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

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

Don't log on pending migration check
This commit is contained in:
Rafael Mendonça França 2012-10-28 09:53:29 -07:00
commit e46a8d89ba

View file

@ -342,7 +342,9 @@ module ActiveRecord
end
def call(env)
ActiveRecord::Migration.check_pending!
ActiveRecord::Base.logger.quietly do
ActiveRecord::Migration.check_pending!
end
@app.call(env)
end
end