Sha256: b959eecc9c08dfa2f08c3a07e1e95796143c2d7851286a8898d5d35e4d711902
Contents?: true
Size: 494 Bytes
Versions: 153
Compression:
Stored size: 494 Bytes
Contents
Sequel.migration do up do from(:triggered_webhooks).where(webhook_id: nil).each do | triggered_webhook | from(:webhook_executions).where(triggered_webhook_id: triggered_webhook[:id]).delete from(:triggered_webhooks).where(id: triggered_webhook[:id]).delete end from(:webhook_executions).where(webhook_id: nil, triggered_webhook_id: nil).delete end # TODO # alter_table(:triggered_webhooks) do # set_column_not_null(:webhook_id) # end down do end end
Version data entries
153 entries across 153 versions & 1 rubygems