Displaying 1 result from an estimated 1 matches for "headerkey".
Did you mean:
header_key
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 h...