diff options
author | Eugene Howe <eugene@xtreme-computers.net> | 2016-07-17 10:32:11 -0400 |
---|---|---|
committer | Eugene Howe <eugene@xtreme-computers.net> | 2016-07-19 09:06:58 -0400 |
commit | 13e74543f9d0f91b7b3ef14279fd78d83f442750 (patch) | |
tree | 2113950412eb9a83d3f0bc5bdc1aaee60661e06c /db/migrate | |
parent | 61e7453e0465ceb631d3e8445429cfed7c1449d3 (diff) | |
download | gitlab-ce-13e74543f9d0f91b7b3ef14279fd78d83f442750.tar.gz |
speed up ExternalWikiService#get_project_wiki_path
* This method previously iterated over all services in a project. Now it
will directly query the ExternalWikiService for the project and filter
by active state.
* The presence of an external wiki is also cached
* When an external wiki is added or removed, the cached value is updated
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20160718153603_add_has_external_wiki_to_projects.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20160718153603_add_has_external_wiki_to_projects.rb b/db/migrate/20160718153603_add_has_external_wiki_to_projects.rb new file mode 100644 index 00000000000..55a3e954292 --- /dev/null +++ b/db/migrate/20160718153603_add_has_external_wiki_to_projects.rb @@ -0,0 +1,7 @@ +class AddHasExternalWikiToProjects < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + def change + add_column :projects, :has_external_wiki, :boolean + end +end |