summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-01-22 11:13:37 -0800
committerJosh Frye <joshfng@gmail.com>2016-01-29 09:14:16 -0500
commit91b9cbff8de538c2966bca94c517ee6aa346f79b (patch)
tree9bce929d696fca03c86bba32f73fdb057541b024 /db
parent227728712ec5b469a36dbaf8c9511098b4817741 (diff)
downloadgitlab-ce-91b9cbff8de538c2966bca94c517ee6aa346f79b.tar.gz
First pass at deleting projects in the background.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160122185421_add_pending_delete_to_project.rb5
-rw-r--r--db/schema.rb7
2 files changed, 9 insertions, 3 deletions
diff --git a/db/migrate/20160122185421_add_pending_delete_to_project.rb b/db/migrate/20160122185421_add_pending_delete_to_project.rb
new file mode 100644
index 00000000000..457922942b0
--- /dev/null
+++ b/db/migrate/20160122185421_add_pending_delete_to_project.rb
@@ -0,0 +1,5 @@
+class AddPendingDeleteToProject < ActiveRecord::Migration
+ def change
+ add_column :projects, :pending_delete, :boolean
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 2a2911bfbc7..8c9cbe73c87 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -677,6 +677,7 @@ ActiveRecord::Schema.define(version: 20160128212447) do
t.string "build_coverage_regex"
t.boolean "build_allow_git_fetch", default: true, null: false
t.integer "build_timeout", default: 3600, null: false
+ t.boolean "pending_delete"
end
add_index "projects", ["builds_enabled", "shared_runners_enabled"], name: "index_projects_on_builds_enabled_and_shared_runners_enabled", using: :btree
@@ -728,9 +729,9 @@ ActiveRecord::Schema.define(version: 20160128212447) do
t.string "type"
t.string "title"
t.integer "project_id"
- t.datetime "created_at", null: false
- t.datetime "updated_at", null: false
- t.boolean "active", null: false
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.boolean "active", default: false, null: false
t.text "properties"
t.boolean "template", default: false
t.boolean "push_events", default: true