Method: Sequent::Migrations::Planner#plan
- Defined in:
- lib/sequent/migrations/planner.rb
#plan(old, new) ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/sequent/migrations/planner.rb', line 28 def plan(old, new) migrations = versions.slice(*Range.new(old + 1, new).to_a.map(&:to_s)) Plan.new( migrations.yield_self(&method(:select_projectors)), migrations .yield_self(&method(:create_migrations)) .yield_self(&method(:remove_redundant_migrations)), ) end |