Sha256: d6002a6041cad90a3fcbd99b0567baebf94b699e3f96ca06c7cebbc93afb2900

Contents?: true

Size: 328 Bytes

Versions: 99

Compression:

Stored size: 328 Bytes

Contents

require_relative 'migration_helper'

Sequel.migration do
  up do
    from(:webhooks).each do | webhook |
      from(:webhook_events).insert(
        webhook_id: webhook[:id],
        name: 'contract_content_changed',
        created_at: DateTime.now,
        updated_at: DateTime.now
      )
    end
  end

  down do

  end
end

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
pact_broker-2.79.1 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.79.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.78.1 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.78.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.77.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.76.2 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.76.1 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.76.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.75.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.74.1 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.74.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.73.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.72.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.71.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.70.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.69.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.68.1 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.68.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.67.0 db/migrations/20171118_create_webhook_events.rb
pact_broker-2.66.0 db/migrations/20171118_create_webhook_events.rb