Displaying 2 results from an estimated 2 matches for "idx_contacts".
2006 Nov 04
0
ActiveRecord
...d 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)
The common concern that I have for each of these is that the
ActiveRecord model may not always guarantee correct behaviors of the
data.
As an example: I have an application which requires that each user have
a unique name for login. If I have a database table [id, username] and
a...
2006 Nov 04
0
Active Record and consistency
...d 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)
The common concern that I have for each of these is that the
ActiveRecord model may not always guarantee correct behaviors of the
data.
As an example: I have an application which requires that each user have
a unique name for login. If I have a database table [id, username] and
a...