BigW Consortium Gitlab

20170206071414_add_recaptcha_verified_to_spam_logs.rb 332 Bytes
Newer Older
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