このコミットが含まれているのは:
2026-07-14 00:22:41 +09:00
コミット 071ef09359
2個のファイルの変更110行の追加24行の削除
+1 -1
ファイルの表示
@@ -59,7 +59,7 @@ class Post < ApplicationRecord
before_validation :normalise_url, if: :will_save_change_to_url?
validates :url, presence: true, uniqueness: true
validates :url, presence: true, uniqueness: true, length: { maximum: 768 }
validates :video_ms, numericality: { only_integer: true, greater_than: 0 }, allow_nil: true
validate :validate_original_created_range