lib/pact_broker/domain/pacticipant.rb in pact_broker-2.58.0 vs lib/pact_broker/domain/pacticipant.rb in pact_broker-2.58.2

- old
+ new

@@ -7,11 +7,14 @@ module PactBroker module Domain class Pacticipant < Sequel::Model include Messages + plugin :insert_ignore, identifying_columns: [:name] + plugin :timestamps, update_on_create: true + set_primary_key :id one_to_many :versions, :order => :order, :reciprocal => :pacticipant one_to_many :labels, :order => :name, :reciprocal => :pacticipant one_to_many :pacts @@ -43,13 +46,15 @@ messages = [] messages << message('errors.validation.attribute_missing', attribute: 'name') unless name messages end end - - Pacticipant.plugin :timestamps, update_on_create: true end end + + + + # Table: pacticipants # Columns: # id | integer | PRIMARY KEY DEFAULT nextval('pacticipants_id_seq'::regclass) # name | text |