This commit is contained in:
mgabdev
2020-05-01 12:46:31 -04:00
parent bff9abcb89
commit fe9a89d68c
5 changed files with 7 additions and 7 deletions

View File

@@ -104,7 +104,6 @@ class MediaAttachment < ApplicationRecord
validates :account, presence: true
validates :description, length: { maximum: 420 }, if: :local?
validates :file, presence: true, if: :local?
scope :attached, -> { where.not(status_id: nil).or(where.not(scheduled_status_id: nil)) }
scope :unattached, -> { where(status_id: nil, scheduled_status_id: nil) }