summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-12-03 12:02:11 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2017-12-03 12:05:23 +0100
commit0464c25f602dc2e4d147ca2ac714d49bf96ddcf2 (patch)
tree3c55fc88891b4bde955713abde3dafa9c95b67dd /db/migrate
parent0e1821973da36d995cf1f9673300c59af8c82294 (diff)
downloadgitlab-ce-0464c25f602dc2e4d147ca2ac714d49bf96ddcf2.tar.gz
Store expire_at in ci_job_artifacts
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170918072948_create_job_artifacts.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/migrate/20170918072948_create_job_artifacts.rb b/db/migrate/20170918072948_create_job_artifacts.rb
index 90152127ed5..d6c6a228ed1 100644
--- a/db/migrate/20170918072948_create_job_artifacts.rb
+++ b/db/migrate/20170918072948_create_job_artifacts.rb
@@ -7,11 +7,12 @@ class CreateJobArtifacts < ActiveRecord::Migration
create_table :ci_job_artifacts do |t|
t.belongs_to :project, null: false, index: true, foreign_key: { on_delete: :cascade }
t.integer :job_id, null: false, index: true
- t.integer :size, limit: 8
t.integer :file_type, null: false, index: true
+ t.integer :size, limit: 8
t.datetime_with_timezone :created_at, null: false
t.datetime_with_timezone :updated_at, null: false
+ t.datetime_with_timezone :expire_at
t.string :file