Skip to content

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

remove redundant ignored_columns

Klaus Zanders096b5cbd06d7
diff --git a/modules/costs/app/models/cost_entry.rb b/modules/costs/app/models/cost_entry.rb
index 9e0ee110d65..fc5e8222f03 100644
--- a/modules/costs/app/models/cost_entry.rb
+++ b/modules/costs/app/models/cost_entry.rb
@@ -31,8 +31,6 @@
class CostEntry < ApplicationRecord
ALLOWED_ENTITY_TYPES = %w[WorkPackage].freeze
- self.ignored_columns += [:work_package_id]
-
belongs_to :project
belongs_to :entity, polymorphic: true
belongs_to :user
diff --git a/modules/costs/app/models/time_entry.rb b/modules/costs/app/models/time_entry.rb
index 17c9b443125..d4f5febc8ca 100644
--- a/modules/costs/app/models/time_entry.rb
+++ b/modules/costs/app/models/time_entry.rb
@@ -31,8 +31,6 @@
class TimeEntry < ApplicationRecord
ALLOWED_ENTITY_TYPES = %w[WorkPackage Meeting].freeze
- self.ignored_columns += [:work_package_id]
-
# could have used polymorphic association
# project association here allows easy loading of time entries at project level with one database trip
belongs_to :project