summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-11-06 13:44:30 -0800
committerMichael Kozono <mkozono@gmail.com>2017-12-01 15:26:40 -0800
commitd6435b68c4fc4e0325ec6a3deb807d0e3dd4dec4 (patch)
treecdbd6798a03c9912089b5a9a23d385e47b4e5d97 /db/schema.rb
parente0f84130567dc34edf1ae75fcf595e24991d2fa9 (diff)
downloadgitlab-ce-d6435b68c4fc4e0325ec6a3deb807d0e3dd4dec4.tar.gz
Add TrackUntrackedUploads post-deploy migration
To create the table, and schedule the background migration that begins the work.
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/schema.rb b/db/schema.rb
index effb2604af2..2b7e12b45f1 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1719,6 +1719,16 @@ ActiveRecord::Schema.define(version: 20171124150326) do
add_index "u2f_registrations", ["key_handle"], name: "index_u2f_registrations_on_key_handle", using: :btree
add_index "u2f_registrations", ["user_id"], name: "index_u2f_registrations_on_user_id", using: :btree
+ create_table "unhashed_upload_files", force: :cascade do |t|
+ t.string "path", null: false
+ t.boolean "tracked", default: false, null: false
+ t.datetime_with_timezone "created_at", null: false
+ t.datetime_with_timezone "updated_at", null: false
+ end
+
+ add_index "unhashed_upload_files", ["path"], name: "index_unhashed_upload_files_on_path", unique: true, using: :btree
+ add_index "unhashed_upload_files", ["tracked"], name: "index_unhashed_upload_files_on_tracked", using: :btree
+
create_table "uploads", force: :cascade do |t|
t.integer "size", limit: 8, null: false
t.string "path", null: false