class PactBroker::DB::DataMigrations::SetWebhooksEnabled
Public Class Methods
Source
# File lib/pact_broker/db/data_migrations/set_webhooks_enabled.rb, line 9 def self.call(connection) if column_exists?(connection, :webhooks, :enabled) connection[:webhooks].where(enabled: nil).update(enabled: true) end end