Method: Nandi::Validation::EachValidator#call

Defined in:
lib/nandi/validation/each_validator.rb

#callObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/nandi/validation/each_validator.rb', line 18

def call
  case instruction.procedure
  when :add_index
    AddIndexValidator.call(instruction)
  when :remove_index
    RemoveIndexValidator.call(instruction)
  when :add_column
    AddColumnValidator.call(instruction)
  when :add_reference
    AddReferenceValidator.call(instruction)
  else
    success
  end
end