search for: fk_m_member_type

Displaying 2 results from an estimated 2 matches for "fk_m_member_type".

2006 Feb 07
0
newbie -- displaying foreign key
...mary key( id ) ); create table members ( id serial, first_name varchar( 100 ) not null, last_name varchar( 100 ) not null, email varchar( 100 ) not null, member_type_id integer not null, primary key( id ), constraint fk_m_member_type foreign key( member_type_id ) \ references member_types( id ) ); And in the model: class Member < ActiveRecord::Base belongs_to :voice_type # validation stuff removed end My question is that I want to add a new member, with the member_types as...
2006 Feb 07
1
displaying foreign keys help request
...mary key( id ) ); create table members ( id serial, first_name varchar( 100 ) not null, last_name varchar( 100 ) not null, email varchar( 100 ) not null, member_type_id integer not null, primary key( id ), constraint fk_m_member_type foreign key( member_type_id ) \ references member_types( id ) ); And in the model: class Member < ActiveRecord::Base belongs_to :voice_type # validation stuff removed end My question is that I want to add a new member, with the member_types as...