Class: PactBroker::Webhooks::Execution

Inherits:
Object
  • Object
show all
Defined in:
lib/pact_broker/webhooks/execution.rb

Constant Summary collapse

EXECUTION_COLUMNS =

Ignore the columns that were used before the TriggeredWebhook class existed. It used to go Webhook -> Execution, and now it goes Webhook -> TriggeredWebhook -> Execution If we ever release a major version where we drop unused columns, those columns could be deleted.

Sequel::Model.db.schema(:webhook_executions).collect(&:first) - [:webhook_id, :pact_publication_id, :consumer_id, :provider_id]

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



20
21
22
23
24
# File 'lib/pact_broker/webhooks/execution.rb', line 20

def <=> other
  comp = created_date <=> other.created_date
  comp = id <=> other.id if comp == 0
  comp
end