Displaying 1 result from an estimated 1 matches for "sectioncontent".
2006 May 28
1
ActiveRecord: FK constraints problem
...LETE FROM contents
WHERE id = 8
I simply don''t understand why rails can''t determine that relation exists and can''t
remove records from join-table transparently...
Please tell me what I must define to got happiness?
I think I should create another model like SectionContent and make
relation like ''has_many :contents, :through => :section_contents''... Is there another way?
Thanks in advance.
CREATE TABLE sections (
id serial NOT NULL,
parent_id integer,
default_content_id integer
);
CREATE TABLE contents (
id serial NOT NULL,...