diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-13 16:22:15 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:44:39 +0300 |
commit | cd01e82873b3cd471203dbf557c71571fd683d16 (patch) | |
tree | 08372f91287ec4c9a14d95044a0eff7fbe8e78c3 /db | |
parent | 506836a695ae40ff200add21c639f3d13aaee9e9 (diff) |
store gpg user name and email on the signature
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170713104235_add_gpg_key_user_info_to_gpg_signatures.rb | 11 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20170713104235_add_gpg_key_user_info_to_gpg_signatures.rb b/db/migrate/20170713104235_add_gpg_key_user_info_to_gpg_signatures.rb new file mode 100644 index 00000000000..0e51a86e64c --- /dev/null +++ b/db/migrate/20170713104235_add_gpg_key_user_info_to_gpg_signatures.rb @@ -0,0 +1,11 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddGpgKeyUserInfoToGpgSignatures < ActiveRecord::Migration + DOWNTIME = false + + def change + add_column :gpg_signatures, :gpg_key_user_name, :string + add_column :gpg_signatures, :gpg_key_user_email, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 53b1e83ddab..b76a5efbbd7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -560,6 +560,8 @@ ActiveRecord::Schema.define(version: 20170725145659) do t.boolean "valid_signature" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "gpg_key_user_name" + t.string "gpg_key_user_email" end add_index "gpg_signatures", ["commit_sha"], name: "index_gpg_signatures_on_commit_sha", using: :btree |