Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-12-03 14:02:11 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-12-03 14:05:23 +0300
commit0464c25f602dc2e4d147ca2ac714d49bf96ddcf2 (patch)
tree3c55fc88891b4bde955713abde3dafa9c95b67dd /db
parent0e1821973da36d995cf1f9673300c59af8c82294 (diff)
Store expire_at in ci_job_artifacts
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170918072948_create_job_artifacts.rb3
-rw-r--r--db/schema.rb3
2 files changed, 4 insertions, 2 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
diff --git a/db/schema.rb b/db/schema.rb
index 3ec183f1c05..64f67574b3f 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -322,10 +322,11 @@ ActiveRecord::Schema.define(version: 20171130145523) do
create_table "ci_job_artifacts", force: :cascade do |t|
t.integer "project_id", null: false
t.integer "job_id", null: false
- t.integer "size", limit: 8
t.integer "file_type", null: false
+ 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"
end