diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-05-23 16:53:29 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-05-23 16:53:29 +0000 |
commit | ddc760a0d625706196629c061f9dfa1cd2d8402e (patch) | |
tree | b5ff46dd3bf269da913e3fcc60018753233b03c2 /lib/gitlab.rb | |
parent | 610aefe43440a7eae8e317aa0a2ed43f0437db98 (diff) | |
parent | d7ecdceb64ba10bac896422f09dd6307a18bf692 (diff) | |
download | gitlab-ce-ddc760a0d625706196629c061f9dfa1cd2d8402e.tar.gz |
Merge branch '45175-cache-json-instead-of-activerecord-objects-in-appearance-and-applicationsetting' into 'master'
Resolve "Cache JSON instead of ActiveRecord objects in `Appearance` and `ApplicationSetting`"
Closes #45175
See merge request gitlab-org/gitlab-ce!18754
Diffstat (limited to 'lib/gitlab.rb')
-rw-r--r-- | lib/gitlab.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab.rb b/lib/gitlab.rb index c5498d0da1a..31119471b8e 100644 --- a/lib/gitlab.rb +++ b/lib/gitlab.rb @@ -9,6 +9,10 @@ module Gitlab Settings end + def self.migrations_hash + @_migrations_hash ||= Digest::MD5.hexdigest(ActiveRecord::Migrator.get_all_versions.to_s) + end + COM_URL = 'https://gitlab.com'.freeze APP_DIRS_PATTERN = %r{^/?(app|config|ee|lib|spec|\(\w*\))} SUBDOMAIN_REGEX = %r{\Ahttps://[a-z0-9]+\.gitlab\.com\z} |