summaryrefslogtreecommitdiff
path: root/db/post_migrate
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-08-31 21:55:12 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-09-05 12:18:34 +0200
commite7d0febb81aa0f3aa942523d40b6a78584e71db3 (patch)
tree86e202484d86f1d8862cb9911b9bae46e37e33a4 /db/post_migrate
parent55acc66d962d4b120babda84cef1d5ab1a91f59f (diff)
downloadgitlab-ce-e7d0febb81aa0f3aa942523d40b6a78584e71db3.tar.gz
remove valid_signature from gpg_signatures
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20170831195038_remove_valid_signature_from_gpg_signatures.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/post_migrate/20170831195038_remove_valid_signature_from_gpg_signatures.rb b/db/post_migrate/20170831195038_remove_valid_signature_from_gpg_signatures.rb
new file mode 100644
index 00000000000..9b6745e33d9
--- /dev/null
+++ b/db/post_migrate/20170831195038_remove_valid_signature_from_gpg_signatures.rb
@@ -0,0 +1,11 @@
+class RemoveValidSignatureFromGpgSignatures < ActiveRecord::Migration
+ DOWNTIME = false
+
+ def up
+ remove_column :gpg_signatures, :valid_signature
+ end
+
+ def down
+ add_column :gpg_signatures, :valid_signature, :boolean
+ end
+end