Sha256: b43939eb69c50c1c54d480151ff27cb7137636e2885ca7c41882d501faf53612

Contents?: true

Size: 575 Bytes

Versions: 22

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

class AddColumnsToWebhooks < ActiveRecord::Migration[6.0]
  def change
    add_column :webhooks, :http_method, :string, default: 'POST', null: false
    add_column :webhooks, :http_content_type, :string, default: 'application/json', null: false
    add_column :webhooks, :enabled, :boolean, default: true
    add_column :webhooks, :verify_ssl, :boolean, default: true
    add_column :webhooks, :ssl_ca_file, :text, null: true
    add_column :webhooks, :user, :string, null: true
    add_column :webhooks, :password, :text, null: true
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_webhooks-4.0.0 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.2.3 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.2.2 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.1.1 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.2.1 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.2.0 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.1.0 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.0.5 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-2.0.3 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.0.4 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-2.0.2 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.0.3 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.0.2 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.0.1 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-2.0.1 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-3.0.0 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-2.0.0 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-1.1.0 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-1.0.0 db/migrate/20200908004234_add_columns_to_webhooks.rb
foreman_webhooks-0.0.3 db/migrate/20200908004234_add_columns_to_webhooks.rb