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
sort associated journal relations
Ivan Kuchinaea59dbf8bda
diff --git a/app/models/journal.rb b/app/models/journal.rbindex 05f08c41106..2ba7da25dd8 100644--- a/app/models/journal.rb+++ b/app/models/journal.rb@@ -95,10 +95,10 @@ class Journal < ApplicationRecordbelongs_to :journable, polymorphic: truebelongs_to :data, polymorphic: true, dependent: :destroy+ has_many :agenda_item_journals, class_name: "Journal::MeetingAgendaItemJournal", dependent: :delete_allhas_many :attachable_journals, class_name: "Journal::AttachableJournal", dependent: :delete_allhas_many :customizable_journals, class_name: "Journal::CustomizableJournal", dependent: :delete_allhas_many :storable_journals, class_name: "Journal::StorableJournal", dependent: :delete_all- has_many :agenda_item_journals, class_name: "Journal::MeetingAgendaItemJournal", dependent: :delete_allhas_many :notifications, dependent: :destroy