Displaying 1 result from an estimated 1 matches for "natural_resources".
2012 Apr 03
4
one master table to hold symbols: good or bad idea?
...I''m thinking of creating a single AR class to hold constant symbol
values and use it for :has_many_through relations whenever I need a
constant symbol. Is this a good idea or a bad idea?
Details:
I notice that I have a lot of models that contain just a name string:
create_table "natural_resources", :force => true do |t|
t.string "name"
end
create_table "roles", :force => true do |t|
t.string "name"
end
... etc ...
These moels are always joined through a has_many_through relation to
some other object (e.g. User :has_many :roles,...