diff options
author | Rémy Coutable <remy@rymai.me> | 2016-07-21 12:12:21 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-07-21 12:17:15 +0300 |
commit | a751df572f12299d4eae4f8b73f054395579ae00 (patch) | |
tree | 5aaa3833ad2a8e6d5d8a6b836d85f61dbd665ea2 /db/migrate | |
parent | 1f93deaea14bfa7d571ac07e866bec701f96e954 (diff) |
Merge branch '20067-wiki-not-visible-from-web' into 'master'
Make Service.external_wikis return only active external wikis
Fixes #20067.
## Does this MR meet the acceptance criteria?
- [x] No CHANGELOG since it fixes a RC12 regression
- Tests
- [x] Added for this feature/bug
- [ ] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)
See merge request !5387
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20160721081015_nullify_has_external_wiki_in_projects.rb | 13 |
1 files changed, 13 insertions, 0 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 |