Exception: DatabaseValidations::Errors::ForeignKeyNotFound
- Defined in:
- lib/database_validations/lib/errors.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#foreign_keys ⇒ Object
readonly
Returns the value of attribute foreign_keys.
Instance Method Summary collapse
-
#initialize(column, foreign_keys) ⇒ ForeignKeyNotFound
constructor
A new instance of ForeignKeyNotFound.
Methods inherited from Base
Constructor Details
#initialize(column, foreign_keys) ⇒ ForeignKeyNotFound
Returns a new instance of ForeignKeyNotFound.
58 59 60 61 62 63 |
# File 'lib/database_validations/lib/errors.rb', line 58 def initialize(column, foreign_keys) @column = column @foreign_keys = foreign_keys super "No foreign key found with column: \"#{column}\". Found foreign keys are: #{foreign_keys}. " + end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
56 57 58 |
# File 'lib/database_validations/lib/errors.rb', line 56 def column @column end |
#foreign_keys ⇒ Object (readonly)
Returns the value of attribute foreign_keys.
56 57 58 |
# File 'lib/database_validations/lib/errors.rb', line 56 def foreign_keys @foreign_keys end |