class Link
  include Mongoid::Document
  include Mongoid::Timestamps

  field :url, :type => String

  references_many :comments
  referenced_in :user

  validates :url, :presence => true
end

class Link
  include Mongoid::Document
  include Mongoid::Timestamps

  field :url, :type => String

  references_many :comments, :dependent => :destroy
  referenced_in :user

  validates :url, :presence => true
end

Add deletion dependency to comments
Add deletion dependency to comments
