Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20210427125400_add_spamcheck_api_key_to_application_setting.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9f411a61e5cd07beb2c15f916e9046ad61a5ada9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddSpamcheckApiKeyToApplicationSetting < ActiveRecord::Migration[6.0]
  def up
    add_column :application_settings, :encrypted_spam_check_api_key, :binary
    add_column :application_settings, :encrypted_spam_check_api_key_iv, :binary
  end

  def down
    remove_column :application_settings, :encrypted_spam_check_api_key
    remove_column :application_settings, :encrypted_spam_check_api_key_iv
  end
end