Class: Sequent::Migrations::Planner::Plan
- Inherits:
-
Struct
- Object
- Struct
- Sequent::Migrations::Planner::Plan
- Defined in:
- lib/sequent/migrations/planner.rb
Instance Attribute Summary collapse
-
#migrations ⇒ Object
Returns the value of attribute migrations.
-
#projectors ⇒ Object
Returns the value of attribute projectors.
Instance Method Summary collapse
Instance Attribute Details
#migrations ⇒ Object
Returns the value of attribute migrations
8 9 10 |
# File 'lib/sequent/migrations/planner.rb', line 8 def migrations @migrations end |
#projectors ⇒ Object
Returns the value of attribute projectors
8 9 10 |
# File 'lib/sequent/migrations/planner.rb', line 8 def projectors @projectors end |
Instance Method Details
#alter_tables ⇒ Object
13 14 15 |
# File 'lib/sequent/migrations/planner.rb', line 13 def alter_tables migrations.select { |m| m.instance_of?(AlterTable) } end |
#empty? ⇒ Boolean
17 18 19 |
# File 'lib/sequent/migrations/planner.rb', line 17 def empty? migrations.empty? end |
#replay_tables ⇒ Object
9 10 11 |
# File 'lib/sequent/migrations/planner.rb', line 9 def replay_tables migrations.select { |m| m.instance_of?(ReplayTable) } end |