Sha256: d38e833ff7a9a396af4a18fbfe5366b4e255b8022c1d0faf342a26522b551f2e
Contents?: true
Size: 352 Bytes
Versions: 24
Compression:
Stored size: 352 Bytes
Contents
class RemoveAllGithubHooks < ActiveRecord::Migration[5.1] def change if !Shipit.legacy_github_api && Shipit::GithubHook.any? Rails.logger.error("Can't destroy github hooks because no legacy token is configred") else Shipit::GithubHook.find_each do |hook| Shipit::DestroyJob.perform_later(hook) end end end end
Version data entries
24 entries across 24 versions & 1 rubygems