Exception: Statecraft::CompositePrimaryKeyUnsupported

Inherits:
Error
  • Object
show all
Defined in:
lib/statecraft/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model:) ⇒ CompositePrimaryKeyUnsupported

Returns a new instance of CompositePrimaryKeyUnsupported.



102
103
104
105
106
# File 'lib/statecraft/errors.rb', line 102

def initialize(model:)
  @model = model
  super("#{model.name} uses a composite primary key; statecraft v0 supports " \
        "single-column primary keys only")
end

Instance Attribute Details

#model ⇒ Object (readonly)

Returns the value of attribute model.



100
101
102
# File 'lib/statecraft/errors.rb', line 100

def model
  @model
end