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