diff --git a/app/models/clip.rb b/app/models/clip.rb index 1588fe7..52ee74a 100644 --- a/app/models/clip.rb +++ b/app/models/clip.rb @@ -1,7 +1,7 @@ class Clip < ApplicationRecord has_one_attached :video belongs_to :category - has_many :tag_to_clips + has_many :tag_to_clips, dependent: :destroy has_many :tags, through: :tag_to_clips validates :title, presence: true end