summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorJarka Kadlecova <jarka@gitlab.com>2017-01-27 17:25:39 +0100
committerJarka Kadlecova <jarka@gitlab.com>2017-02-07 12:56:20 +0100
commit3d2954e4570d236a080b0d46698d96a28fd9acec (patch)
tree0295eec45b4589fc55a1cf587eb7c1cd98d8c9ce /db/migrate
parent999edc5c1783aa205fdac4ba159e51851acdb446 (diff)
downloadgitlab-ce-3d2954e4570d236a080b0d46698d96a28fd9acec.tar.gz
Use reCaptcha when an issue identified as spam
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170206071414_add_recaptcha_verified_to_spam_logs.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20170206071414_add_recaptcha_verified_to_spam_logs.rb b/db/migrate/20170206071414_add_recaptcha_verified_to_spam_logs.rb
new file mode 100644
index 00000000000..44372334d21
--- /dev/null
+++ b/db/migrate/20170206071414_add_recaptcha_verified_to_spam_logs.rb
@@ -0,0 +1,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