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

Version Path
shipit-engine-0.39.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.38.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.37.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.36.1 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.36.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.35.1 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.35.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.34.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.33.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.32.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.31.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.30.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.29.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.28.1 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.28.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.27.1 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.27.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.26.0 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.25.1 db/migrate/20180417130436_remove_all_github_hooks.rb
shipit-engine-0.25.0 db/migrate/20180417130436_remove_all_github_hooks.rb