rubyonrailsin

A Ruby and Rails talk

Monday, March 15, 2010


[Rails] more than one table per model

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Hi everyone,

I want to create a model that uses two tables for its data. Is that
possible or just a bad idea? I don't want to do the has_one because I
want to avoid the extra dereferencing.

For example

Model A
- attributes name in first table
- attribute phone_num in second table

Thanks,
Frank

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive