Exception: ForeignKeyValidation::Errors::NoForeignKeyFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- ForeignKeyValidation::Errors::NoForeignKeyFoundError
- Defined in:
- lib/foreign_key_validation/errors.rb
Instance Method Summary collapse
-
#initialize(validate_against, table_name) ⇒ NoForeignKeyFoundError
constructor
A new instance of NoForeignKeyFoundError.
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 |