Displaying 2 results from an estimated 2 matches for "fk_contacts_us".
2006 Nov 04
0
ActiveRecord
...ewhere. At
least that''s my olde school thinking.
model definition: belongs_to, has_many, has_one
These are all concepts that have been previously handled by standard SQL
concepts such as:
belongs_to:
This is addressed by the SQL
execute ''alter table contacts add constraint fk_contacts_users
foreign key (user_id) references users(id)
on delete cascade on update cascade''
has_many:
This is a data model that is not addressed by SQL directly
but is included in the SQL for belongs_to
has_one:
execute ''create unique index idx_contacts (username)
Th...
2006 Nov 04
0
Active Record and consistency
...ewhere. At
least that''s my olde school thinking.
model definition: belongs_to, has_many, has_one
These are all concepts that have been previously handled by standard SQL
concepts such as:
belongs_to:
This is addressed by the SQL
execute ''alter table contacts add constraint fk_contacts_users
foreign key (user_id) references users(id)
on delete cascade on update cascade''
has_many:
This is a data model that is not addressed by SQL directly
but is included in the SQL for belongs_to
has_one:
execute ''create unique index idx_contacts (username)
Th...