Sha256: e1a20d461234bc9e9f097f8969941ad0472b77047fa1cd0e1b5496900e0c368a

Contents?: true

Size: 386 Bytes

Versions: 66

Compression:

Stored size: 386 Bytes

Contents

require 'pact_broker/db/data_migrations/helpers'

module PactBroker
  module DB
    module DataMigrations
      class SetWebhooksEnabled
        extend Helpers

        def self.call(connection)
          if column_exists?(connection, :webhooks, :enabled)
            connection[:webhooks].where(enabled: nil).update(enabled: true)
          end
        end
      end
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

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