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-4.0.0 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.2.3 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.2.2 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.1.1 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.2.1 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.2.0 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.1.0 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.0.5 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-2.0.3 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.0.4 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-2.0.2 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.0.3 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.0.2 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.0.1 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-2.0.1 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-3.0.0 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-2.0.0 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-1.1.0 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-1.0.0 db/migrate/20200831194514_add_template_to_webhooks.rb
foreman_webhooks-0.0.3 db/migrate/20200831194514_add_template_to_webhooks.rb