:dependent => :destroy for Asciicast#comments
This commit is contained in:
parent
ad9542d124
commit
44d6914991
@ -8,7 +8,7 @@ class Asciicast < ActiveRecord::Base
|
||||
validates :terminal_columns, :terminal_lines, :duration, :presence => true
|
||||
|
||||
belongs_to :user
|
||||
has_many :comments, :order => :created_at
|
||||
has_many :comments, :order => :created_at, :dependent => :destroy
|
||||
|
||||
before_create :assign_user, :unless => :user
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user