search for: fk_sections_contents_sect

Displaying 1 result from an estimated 1 matches for "fk_sections_contents_sect".

2006 May 28
1
ActiveRecord: FK constraints problem
...zone ); CREATE TABLE contents_sections ( section_id integer NOT NULL, content_id integer NOT NULL ); ALTER TABLE ONLY contents_sections ADD CONSTRAINT fk_contents_contents_sections FOREIGN KEY (content_id) REFERENCES contents(id); ALTER TABLE ONLY contents_sections ADD CONSTRAINT fk_sections_contents_sections FOREIGN KEY (section_id) REFERENCES sections(id); ALTER TABLE ONLY sections ADD CONSTRAINT fk_sections_contents FOREIGN KEY (default_content_id) REFERENCES contents(id);