Displaying 1 result from an estimated 1 matches for "engineer_id".
Did you mean:
engineer_01
2006 Sep 25
3
Subclasses - help required
...r type of application, staff are assigned to projects,
but each staff has varied roles for different projects... STI does not
seem to be applicable here
Imagine a table staffs...
id int
name varchar
blah....
is_manager int 1
is_engineer int 1
is_producer int 1
and projects...
id
name
manager_id
engineer_id
producer_id
how is the best way to subclass manager, engineer, and producer from
class:staff??
cheers
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:...