diff options
Diffstat (limited to 'app/models/terraform/state_version.rb')
-rw-r--r-- | app/models/terraform/state_version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/terraform/state_version.rb b/app/models/terraform/state_version.rb index c50eaa66860..d6a16ad5b99 100644 --- a/app/models/terraform/state_version.rb +++ b/app/models/terraform/state_version.rb @@ -13,7 +13,7 @@ module Terraform scope :with_files_stored_locally, -> { where(file_store: Terraform::StateUploader::Store::LOCAL) } scope :preload_state, -> { includes(:terraform_state) } - default_value_for(:file_store) { StateUploader.default_store } + attribute :file_store, default: -> { StateUploader.default_store } mount_file_store_uploader StateUploader |