lib/evolver/migrator.rb
# Get the list of pending migrations - those that need to be executed
# during this run.
#
# @example Get the pending migrations.
#   migrator.pending(session)
#
# @param [ Symbol ] name The name of the session.
# @param [ Moped::Session ] session The session to use.
#
# @return [ Array<Migration> ] The migrations that need to run.
#
# @since 0.0.0
Get the list of pending migrations - those that need to be executed
during this run.
Get the list of pending migrations - those that need to be executed during this run .
def pending(name, session)
      run = executed(session)
      Evolver.registry.keys.reduce([]) do |pending, klass|
        pending.push(Evolver.find(klass, session)) if runnable?(run, klass, name)
        pending
      end
    end
def pending ( name , session ) run = executed ( session ) Evolver . registry . keys . reduce ( [ ] ) do | pending , klass | pending . push ( Evolver . find ( klass , session ) ) if runnable? ( run , klass , name ) pending end end
Get the list of pending migrations - those that need to be executed
during this run.
Get the list of pending migrations - those that need to be executed during this run .
The migrations that need to run.
The migrations that need to run .
 Array<Migration> 
name
<not_specific>
session
<not_specific>
<not_specific>
session The session to use.
session The session to use .
example
Get the pending migrations. migrator.pending(session)
Get the pending migrations . migrator . pending ( session )
since
None