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:
authorRémy Coutable <remy@rymai.me>2016-07-21 11:36:02 +0300
committerRémy Coutable <remy@rymai.me>2016-07-21 11:36:02 +0300
commitf8afe47a87ca880c95163aa7e731638a730ed14b (patch)
tree5d12e2d2c84a7f4c1d5ad634605f81a65f72ea59 /db
parent8ed97054835a28ead703c32d9c2ab79a15412c88 (diff)
Make Service.external_wikis return only active external wikis
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160721081015_nullify_has_external_wiki_in_projects.rb13
-rw-r--r--db/schema.rb2
2 files changed, 14 insertions, 1 deletions
diff --git a/db/migrate/20160721081015_nullify_has_external_wiki_in_projects.rb b/db/migrate/20160721081015_nullify_has_external_wiki_in_projects.rb
new file mode 100644
index 00000000000..4bb5bb79632
--- /dev/null
+++ b/db/migrate/20160721081015_nullify_has_external_wiki_in_projects.rb
@@ -0,0 +1,13 @@
+class NullifyHasExternalWikiInProjects < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ def up
+ execute("UPDATE projects SET has_external_wiki = NULL")
+ end
+
+ def down
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index c7876426424..d541e1cccb7 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20160718153603) do
+ActiveRecord::Schema.define(version: 20160721081015) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"