Displaying 1 result from an estimated 1 matches for "away_rounds".
2006 Mar 07
13
Active Record - Can''t figure out relationship.
I have the following two tables:
create table teams (
id int not null auto_increment,
short_name varchar(12) not null,
long_name varchar(50) not null,
logo varchar(20) not null,
primary key (id)
);
create table rounds (
id int not null auto_increment,
home_team_id int not null,
away_team_id int