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

20170206071414_add_recaptcha_verified_to_spam_logs.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 44372334d21dc13b39969c7ed982e66d59efe1d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class AddRecaptchaVerifiedToSpamLogs < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  disable_ddl_transaction!

  DOWNTIME = false

  def up
    add_column_with_default(:spam_logs, :recaptcha_verified, :boolean, default: false)
  end

  def down
    remove_column(:spam_logs, :recaptcha_verified)
  end
end