You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: check_pending.rb
    path of file: ./repos/activegraph/lib/active_graph/migrations
    
    the code of the file until where you have to start completion: module ActiveGraph
  module Migrations
    class CheckPending
      def initialize(app)
        @app = app
        @last_check = 0
      end

      def call(env)
   
    
      def call(env)
        latest_migration = ActiveGraph::Migrations::Runner.latest_migration
        mtime = latest_migration ? latest_migration.version.to_i : 0
        if @last_check < mtime
          ActiveGraph::Migrations.check_for_pending_migrations!
          @last_check = mtime
        end