diff --git a/app/models/post.rb b/app/models/post.rb index 98671c505..b72659ed9 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -17,7 +17,7 @@ class Post < ActiveRecord::Base has_many :comments, :order => 'created_at ASC', :dependent => :destroy has_many :post_visibilities has_many :aspects, :through => :post_visibilities - has_many :mentions, :dependent => :delete_all + has_many :mentions, :dependent => :destroy_all belongs_to :person cattr_reader :per_page