Sha256: a6de8855fa1c84644818073042a9e8a6ab95cf7e0f145d6d6095cdaf251a7430

Contents?: true

Size: 850 Bytes

Versions: 45

Compression:

Stored size: 850 Bytes

Contents

Sequel.migration do
  change do
    create_table(:webhooks, charset: "utf8") do
      primary_key :id
      String :uuid, null: false, unique: true, unique_constraint_name: "uq_webhook_uuid"
      String :method, null: false
      String :url, null: false
      String :body
      Boolean :is_json_request_body
      foreign_key :consumer_id, :pacticipants, null: false, foreign_key_constraint_name: "fk_webhooks_consumer"
      foreign_key :provider_id, :pacticipants, null: false, foreign_key_constraint_name: "fk_webhooks_provider"
    end

    create_table(:webhook_headers, charset: "utf8") do
      String :name, null: false
      String :value
      foreign_key :webhook_id, :webhooks, null: false, foreign_key_constraint_name: "fk_webhookheaders_webhooks"
      primary_key [:webhook_id, :name], :name=>:webhooks_headers_pk
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
pact_broker-2.113.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.112.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.111.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.109.1 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.109.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.108.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.107.1 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.107.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.107.0.beta.1 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.106.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.105.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.104.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.103.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.102.2 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.102.1 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.102.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.101.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.100.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.99.0 db/migrations/000012_create_webhooks_table.rb
pact_broker-2.98.0 db/migrations/000012_create_webhooks_table.rb