Tapes are now Clips, also they have categories

This commit is contained in:
Roscoe 2025-09-10 03:08:27 +01:00
commit c8732b6332
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
41 changed files with 347 additions and 148 deletions

3
app/models/category.rb Normal file
View file

@ -0,0 +1,3 @@
class Category < ApplicationRecord
has_many :clips
end

View file

@ -1,4 +1,5 @@
class Tape < ApplicationRecord
class Clip < ApplicationRecord
has_one_attached :video
belongs_to :category
validates :title, presence: true
end