Raise description text max length

staging
Daggertooth 2018-04-15 01:49:23 -05:00 committed by multiple creatures
parent 41642c6668
commit b8ef3027da
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class MediaAttachment < ApplicationRecord
include Attachmentable
validates :account, presence: true
validates :description, length: { maximum: 420 }, if: :local?
validates :description, length: { maximum: 666 }, 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) }