Sha256: eb3770299ccb8642e9ee2a15643ff6180ebe23804525145df055ece1f5319986

Contents?: true

Size: 391 Bytes

Versions: 99

Compression:

Stored size: 391 Bytes

Contents

require_relative 'migration_helper'

Sequel.migration do
  change do
    create_table(:webhook_events, charset: 'utf8') do
      primary_key :id
      foreign_key :webhook_id, :webhooks, on_delete: :cascade
      String :name
      DateTime :created_at, null: false
      DateTime :updated_at, null: false
      index [:id, :name], unique: true, name: 'uq_webhook_id_name'
    end
  end
end

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
pact_broker-2.65.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.64.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.63.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.62.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.61.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.60.1 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.60.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.59.2 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.59.1 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.59.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.58.3 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.58.2 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.58.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.57.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.56.1 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.56.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.55.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.54.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.53.0 db/migrations/20171117_create_webhook_events.rb
pact_broker-2.52.2 db/migrations/20171117_create_webhook_events.rb