search for: fk_change_article

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

2006 Mar 27
1
Tests not tiding up after themselves?
...ll auto_increment, headline_id int not null, description text, constraint fk_article_headline foreign key (headline_id) references headlines(id), primary key (id) ); create table changes ( id int not null auto_increment, article_id int not null, summary text not null, diff text, constraint fk_change_article foreign key (article_id) references articles(id), primary key (id) ); ---- The Headline class declares a "has_one" relationship to the Article class. And the Article class declares a "has_many" relationship to the Change class. I have tests for the Article and Headline classes...