summaryrefslogtreecommitdiff
path: root/db/post_migrate
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2018-09-25 16:29:17 +0300
committerValery Sizov <valery@gitlab.com>2018-09-25 17:49:39 +0300
commit15d011d64d579616dd9df3e3e5082ed5b99bcdf8 (patch)
treecb89f3316d037e19ddc5e1b39fdf37955313e103 /db/post_migrate
parentcb0f024cd4c4aa51c7824e4e1a6c4d0f307afad1 (diff)
downloadgitlab-ce-15d011d64d579616dd9df3e3e5082ed5b99bcdf8.tar.gz
Geo: sync disabled wikis. Stage 2follow-up-geo-sync-disabled-wikis
We started syncing all the wiki regardless of the fact it's disabled or not. We couldn't do that in one stage because of needing of smoth update and deprecating things. This is the second stage that finally removes unused columns in the geo_node_status table.
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20180917172041_remove_wikis_count_from_site_statistics.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/post_migrate/20180917172041_remove_wikis_count_from_site_statistics.rb b/db/post_migrate/20180917172041_remove_wikis_count_from_site_statistics.rb
new file mode 100644
index 00000000000..0a39abe3bdf
--- /dev/null
+++ b/db/post_migrate/20180917172041_remove_wikis_count_from_site_statistics.rb
@@ -0,0 +1,6 @@
+# frozen_string_literal: true
+class RemoveWikisCountFromSiteStatistics < ActiveRecord::Migration
+ def change
+ remove_column :site_statistics, :wikis_count, :integer
+ end
+end