class PactBroker::DB::DataMigrations::SetWebhooksEnabled
Public Class Methods
call(connection)
click to toggle 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