class Mv::Core::Migration::Operations::List

Attributes

operations[R]

Public Class Methods

new() click to toggle source
# File lib/mv/core/migration/operations/list.rb, line 8
def initialize()
  @operations = []  
end

Public Instance Methods

add_operation(operation) click to toggle source
# File lib/mv/core/migration/operations/list.rb, line 12
def add_operation(operation)
  operations << operation
end
execute() click to toggle source
# File lib/mv/core/migration/operations/list.rb, line 16
def execute
  operations.each(&:execute)
  operations.clear
end
tables() click to toggle source
# File lib/mv/core/migration/operations/list.rb, line 21
def tables
  operations.collect(&:table_name)
end