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:
authorEric Eastwood <contact@ericeastwood.com>2017-11-07 02:07:17 +0300
committerEric Eastwood <contact@ericeastwood.com>2017-11-07 02:07:17 +0300
commitfd9be1dd1f077a33e5ab15e8273fb726cbbc6fcc (patch)
treeac8231cf51f503d65ef9dd9ed139188a549442ee /db
parent9ac44db45e26177bff48b1d9e2af625d5938baac (diff)
parenta46d32412ec93be2d6d10bd4bcbdd23b69d31865 (diff)
Merge branch '38464-k8s-apps' into add-ingress-to-cluster-applications
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb14
-rw-r--r--db/schema.rb1
2 files changed, 14 insertions, 1 deletions
diff --git a/db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb b/db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb
new file mode 100644
index 00000000000..4e8f495d65d
--- /dev/null
+++ b/db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb
@@ -0,0 +1,14 @@
+class RemoveRefFetchedFromMergeRequests < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ # We don't need to cache this anymore: the refs are now created
+ # upon save/update and there is no more use for this flag
+ #
+ # See https://gitlab.com/gitlab-org/gitlab-ce/issues/36061
+ def change
+ remove_column :merge_requests, :ref_fetched, :boolean
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 9e07114a2d1..430f7f2f5e0 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1047,7 +1047,6 @@ ActiveRecord::Schema.define(version: 20171106101200) do
t.datetime "last_edited_at"
t.integer "last_edited_by_id"
t.integer "head_pipeline_id"
- t.boolean "ref_fetched"
t.string "merge_jid"
t.boolean "discussion_locked"
t.integer "latest_merge_request_diff_id"