class Nandi::Validation::RemoveIndexValidator
Attributes
instruction[R]
Public Class Methods
call(instruction)
click to toggle source
# File lib/nandi/validation/remove_index_validator.rb, line 10 def self.call(instruction) new(instruction).call end
new(instruction)
click to toggle source
# File lib/nandi/validation/remove_index_validator.rb, line 14 def initialize(instruction) @instruction = instruction end
Public Instance Methods
call()
click to toggle source
# File lib/nandi/validation/remove_index_validator.rb, line 18 def call opts = instruction.extra_args assert( opts.key?(:name) || opts.key?(:column), "remove_index: requires a `name` or `column` argument", ) end