OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Revert "enums hotfix for multitenancy"
Klaus Zanders49f8e1ecfa63
diff --git a/modules/storages/app/models/storages/project_storage.rb b/modules/storages/app/models/storages/project_storage.rbindex 11d9d0014f2..a7c0947d6f7 100644--- a/modules/storages/app/models/storages/project_storage.rb+++ b/modules/storages/app/models/storages/project_storage.rb@@ -40,10 +40,6 @@ class Storages::ProjectStorage < ApplicationRecord# There should be only one ProjectStorage per project and storage.validates :project, uniqueness: { scope: :storage }- # The enum type detection fails in the multitenancy context for unknown- # reasons. So we declare it explicitly here. @TODO remove once fixed properly- attribute :project_folder_mode, :string-enum project_folder_mode: {inactive: 'inactive',manual: 'manual',diff --git a/modules/storages/app/models/storages/storage.rb b/modules/storages/app/models/storages/storage.rbindex 8f7c7b68166..f604a1639c3 100644--- a/modules/storages/app/models/storages/storage.rb+++ b/modules/storages/app/models/storages/storage.rb@@ -82,10 +82,6 @@ module Storagesscope :automatic_management_enabled, -> { where("provider_fields->>'automatically_managed' = 'true'") }- # The enum type detection fails in the multitenancy context for unknown- # reasons. So we declare it explicitly here. @TODO remove once fixed properly- attribute :health_status, :string-enum health_status: {pending: 'pending',healthy: 'healthy',