Move inverse_of further up
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user