Exception: ShaAttribute::ShaAttributeTypeMismatchError
- Inherits:
-
StandardError
- Object
- StandardError
- ShaAttribute::ShaAttributeTypeMismatchError
- Defined in:
- app/models/concerns/sha_attribute.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(column_name, column_type) ⇒ ShaAttributeTypeMismatchError
constructor
A new instance of ShaAttributeTypeMismatchError.
- #message ⇒ Object
Constructor Details
#initialize(column_name, column_type) ⇒ ShaAttributeTypeMismatchError
Returns a new instance of ShaAttributeTypeMismatchError.
7 8 9 10 |
# File 'app/models/concerns/sha_attribute.rb', line 7 def initialize(column_name, column_type) @column_name = column_name @column_type = column_type end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'app/models/concerns/sha_attribute.rb', line 12 def "sha_attribute :#{@column_name} should be a :binary column but it is :#{@column_type}" end |