2017-06-14 07:17:34 +00:00
|
|
|
class CreateGpgSignatures < ActiveRecord::Migration
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2017-07-15 13:25:21 +00:00
|
|
|
def change
|
2017-06-14 07:17:34 +00:00
|
|
|
create_table :gpg_signatures do |t|
|
2017-07-15 13:25:21 +00:00
|
|
|
t.timestamps_with_timezone null: false
|
|
|
|
|
2017-06-14 07:17:34 +00:00
|
|
|
t.references :project, index: true, foreign_key: true
|
|
|
|
t.references :gpg_key, index: true, foreign_key: true
|
|
|
|
|
2017-07-15 13:25:21 +00:00
|
|
|
t.boolean :valid_signature
|
2017-06-14 07:17:34 +00:00
|
|
|
|
2017-07-15 13:25:21 +00:00
|
|
|
t.string :commit_sha
|
|
|
|
t.string :gpg_key_primary_keyid
|
|
|
|
t.string :gpg_key_user_name
|
|
|
|
t.string :gpg_key_user_email
|
2017-06-14 07:17:34 +00:00
|
|
|
|
2017-07-15 13:25:21 +00:00
|
|
|
t.index :commit_sha
|
|
|
|
t.index :gpg_key_primary_keyid
|
|
|
|
end
|
2017-06-14 07:17:34 +00:00
|
|
|
end
|
|
|
|
end
|