Skip to content

Instantly share code, notes, and snippets.

@lucasprag
Last active September 16, 2017 16:07
Show Gist options
  • Save lucasprag/0a2811d944be088e924f6897606254ac to your computer and use it in GitHub Desktop.
Save lucasprag/0a2811d944be088e924f6897606254ac to your computer and use it in GitHub Desktop.
module ActiveRecord
class Migration
class CheckPending
def initialize(app)
@app = app
end
def call(env)
ActiveRecord::Base.logger.silence do
ActiveRecord:: Migration.check_pending!
end
@app.call(env)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment