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
6 7 8 |
# File 'lib/sequent/migrations/planner.rb', line 6 def migrations @migrations end |
#projectors ⇒ Object
Returns the value of attribute projectors
6 7 8 |
# File 'lib/sequent/migrations/planner.rb', line 6 def projectors @projectors end |
Instance Method Details
#alter_tables ⇒ Object
11 12 13 |
# File 'lib/sequent/migrations/planner.rb', line 11 def alter_tables migrations.select { |m| m.instance_of?(AlterTable) } end |
#empty? ⇒ Boolean
15 16 17 |
# File 'lib/sequent/migrations/planner.rb', line 15 def empty? migrations.empty? end |
#replay_tables ⇒ Object
7 8 9 |
# File 'lib/sequent/migrations/planner.rb', line 7 def replay_tables migrations.select { |m| m.instance_of?(ReplayTable) } end |