diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-02 18:08:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-02 18:08:13 +0300 |
commit | 62f486eb359932d8ec32ee6456148f9c477c52e9 (patch) | |
tree | 4626a2e2baff0137f542b9e9d722713422e5b54e /app/models/terraform | |
parent | 6092dcc437ef3e9300cc32cb7c6daea9448cba40 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/terraform')
-rw-r--r-- | app/models/terraform/state.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/terraform/state.rb b/app/models/terraform/state.rb index 7a43350971a..2ff2e3d66c0 100644 --- a/app/models/terraform/state.rb +++ b/app/models/terraform/state.rb @@ -4,6 +4,12 @@ module Terraform class State < ApplicationRecord include UsageStatistics include FileStoreMounter + include IgnorableColumns + # These columns are being removed since geo replication falls to the versioned state + # Tracking in https://gitlab.com/gitlab-org/gitlab/-/issues/258262 + ignore_columns %i[verification_failure verification_retry_at verified_at verification_retry_count verification_checksum], + remove_with: '13.7', + remove_after: '2020-12-22' HEX_REGEXP = %r{\A\h+\z}.freeze UUID_LENGTH = 32 @@ -34,10 +40,6 @@ module Terraform versioning_enabled ? latest_version&.file : file end - def local? - file_store == ObjectStorage::Store::LOCAL - end - def locked? self.lock_xid.present? end @@ -54,5 +56,3 @@ module Terraform end end end - -Terraform::State.prepend_if_ee('EE::Terraform::State') |