-
- Downloads
Cache column_exists? for application settings
This is most a backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4987/diffs but includes other columns that use column_exists? in a way that may cause unnecessary schema loads.
Showing
- app/models/application_setting.rb 3 additions, 3 deletionsapp/models/application_setting.rb
- changelogs/unreleased/sh-cache-column-exists.yml 5 additions, 0 deletionschangelogs/unreleased/sh-cache-column-exists.yml
- lib/gitlab/database.rb 4 additions, 0 deletionslib/gitlab/database.rb
- spec/lib/gitlab/database_spec.rb 11 additions, 0 deletionsspec/lib/gitlab/database_spec.rb
Please register or sign in to comment