Skip to content
Snippets Groups Projects
Unverified Commit 86f27b17 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix deleting a scheduled status immediately deleting media attachments (#9728)

parent 1cbdf8d2
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ class ScheduledStatus < ApplicationRecord
DAILY_LIMIT = 25
belongs_to :account, inverse_of: :scheduled_statuses
has_many :media_attachments, inverse_of: :scheduled_status, dependent: :destroy
has_many :media_attachments, inverse_of: :scheduled_status, dependent: :nullify
validate :validate_future_date
validate :validate_total_limit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment