Displaying 1 result from an estimated 1 matches for "headerkeys_id".
Did you mean:
headerkey_id
2006 Jun 07
1
has_many, through, want to store email in mysql
...imple import
script, that works, so that''s not a problem. Showing the email
(efficiently) in a ROR site is.
These tables are in the database:
emails
id
email_id (foreign key -> emails.id)
seq
preamble
body
epilogue
headers
id
email_id (foreign key -> emails.id)
headerkeys_id (foreign key -> headerkeys.id)
seq
value
headerkeys
id
name
First, I thought I could use a HABTM (has and belongs to many), but
since the join table (headers) also contains extra information, like seq
and value, this shouldn''t be used, from what I read..
So, in ROR, I have...