habtm relationship does not support :dependent option

Posted by dorelal on Stack Overflow See other posts from Stack Overflow or by dorelal
Published on 2010-05-10T00:33:36Z Indexed on 2010/05/10 0:38 UTC
Read the original article Hit count: 482

Filed under:

Is it true that HABTM relationship does not support :dependent option.

class Person < ActiveRecord::Base has_and_belongs_to_many :posts, :dependent => :destroy end

I am trying rails edge.

© Stack Overflow or respective owner

Related posts about ruby-on-rails