Move inverse_of further up

This commit is contained in:
Jose Farias
2024-10-24 11:28:59 -06:00
parent e3db8e8700
commit 70ff52f883
+1 -1
View File
@@ -1,7 +1,7 @@
class ThreadEntry < ApplicationRecord
belongs_to :bubble, touch: true
delegated_type :threadable, types: %w[ Comment Rollup ], dependent: :destroy, inverse_of: :thread_entry
delegated_type :threadable, types: %w[ Comment Rollup ], inverse_of: :thread_entry, dependent: :destroy
scope :chronologically, -> { order created_at: :asc, id: :desc }
end