Exception: ForeignKeyValidation::Errors::NoForeignKeyFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/foreign_key_validation/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(validate_against, table_name) ⇒ NoForeignKeyFoundError

Returns a new instance of NoForeignKeyFoundError.



11
12
13
# File 'lib/foreign_key_validation/errors.rb', line 11

def initialize(validate_against, table_name)
  super("No foreign key for relation #{validate_against} on #{table_name} table!")
end