Exception: Identifiable::Errors::ColumnCannotBeIdError
- Inherits:
-
StandardError
- Object
- StandardError
- Identifiable::Errors::ColumnCannotBeIdError
- Defined in:
- lib/identifiable/errors.rb
Instance Method Summary collapse
-
#initialize ⇒ ColumnCannotBeIdError
constructor
A new instance of ColumnCannotBeIdError.
Constructor Details
#initialize ⇒ ColumnCannotBeIdError
Returns a new instance of ColumnCannotBeIdError.
14 15 16 |
# File 'lib/identifiable/errors.rb', line 14 def initialize super('The identifiable\'s column cannot be :id, since that\'s your primary key. You should create another index column in your table with a name like :public_id.') end |