here come the tags

This commit is contained in:
Roscoe 2025-09-10 03:46:23 +01:00
commit 29368bfdb9
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
16 changed files with 155 additions and 2 deletions

View file

@ -1,5 +1,7 @@
class Clip < ApplicationRecord
has_one_attached :video
belongs_to :category
has_many :tag_to_clips
has_many :tags, through: :tag_to_clips
validates :title, presence: true
end