Ruby on Rails
Wednesday, March 30, 2011
Hi!
In one of my current projects, I have an habtm relationship between two models. To access the table
via console, I created the model for the join table. so for example, I have
class Foo
has_and_belongs_to_many :bars, :join_table => 'foo_bars'
I created a FooBar class so I can actually access the records via AR. My question is this, is it fine to
add another column to this table?
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment