Class: Sequent::Migrations::Planner::Plan

Inherits:
Struct
  • Object
show all
Defined in:
lib/sequent/migrations/planner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#migrationsObject

Returns the value of attribute migrations

Returns:

  • (Object)

    the current value of migrations



4
5
6
# File 'lib/sequent/migrations/planner.rb', line 4

def migrations
  @migrations
end

#projectorsObject

Returns the value of attribute projectors

Returns:

  • (Object)

    the current value of projectors



4
5
6
# File 'lib/sequent/migrations/planner.rb', line 4

def projectors
  @projectors
end

Instance Method Details

#alter_tablesObject



9
10
11
# File 'lib/sequent/migrations/planner.rb', line 9

def alter_tables
  migrations.select { |m| m.class == AlterTable }
end

#empty?Boolean

Returns:



13
14
15
# File 'lib/sequent/migrations/planner.rb', line 13

def empty?
  migrations.empty?
end

#replay_tablesObject



5
6
7
# File 'lib/sequent/migrations/planner.rb', line 5

def replay_tables
  migrations.select { |m| m.class == ReplayTable }
end