Sha256: 59eae47cc771f5593832b596d33ab995d7e6cdbbe2448d93f215d4d509ce6f01

Contents?: true

Size: 199 Bytes

Versions: 22

Compression:

Stored size: 199 Bytes

Contents

# frozen_string_literal: true

class AddTemplateToWebhooks < ActiveRecord::Migration[6.0]
  def change
    add_reference :webhooks, :webhook_template, foreign_key: { to_table: :templates }
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_webhooks-0.0.2 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-0.0.1 db/migrate/20200831194514_add_template_to_webhooks.rb