instance method
call
Ruby on Rails 8.1.2
Since v4.0.13Signature
call(env)
No documentation comment.
Parameters
-
envreq
Source
# File activerecord/lib/active_record/migration.rb, line 656
def call(env)
@mutex.synchronize do
@watcher ||= build_watcher do
@needs_check = true
ActiveRecord::Migration.check_pending_migrations
@needs_check = false
end
if @needs_check
@watcher.execute
else
@watcher.execute_if_updated
end
end
@app.call(env)
end
Defined in activerecord/lib/active_record/migration.rb line 656
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration::CheckPending