lib/evolver/migrator.rb
# Execute the migrations. This grabs all pending migrations in order and
# calls execute on them for each session that it has specified it runs on.
# Once the migration has finished without errors, a migrations document
# gets inserted into the "evolver_migrations" collection in that session.
#
# @example Execute the migrations.
#   migrator.execute
#
# @return [ Array<Moped::Session> ] The sessions that were used.
#
# @since 0.0.0
Execute the migrations. This grabs all pending migrations in order and
calls execute on them for each session that it has specified it runs on.
Once the migration has finished without errors, a migrations document
gets inserted into the "evolver_migrations" collection in that session.
Execute the migrations . This grabs all pending migrations in order and calls execute on them for each session that it has specified it runs on . Once the migration has finished without errors a migrations document gets inserted into the " evolver_migrations " collection in that session .
def execute
      sessions.each_pair do |name, session|
        pending(name, session.with(safe: true, consistency: :strong)).each do |migration|
          migration.execute
          log_execution(migration, name)
          migration.mark_as_executed
        end
      end
    end
def execute sessions . each_pair do | name , session | pending ( name , session . with ( safe : true , consistency : :strong ) ) . each do | migration | migration . execute log_execution ( migration , name ) migration . mark_as_executed end end end
Execute the migrations.
Execute the migrations .
The sessions that were used.
The sessions that were used .
 Array<Moped::Session> 
example
Execute the migrations. migrator.execute
Execute the migrations . migrator . execute
since
None