search for: worker_type

Displaying 2 results from an estimated 2 matches for "worker_type".

Did you mean: work_type
2007 Dec 28
2
Arity?
...register_status(@results) end def do_work(args = nil) begin logger.debug("in worker") ... I get to the create method''s logger message, but not the first do_work logger call. Here''s the "ask_work" call: MiddleMan.new_worker(:worker => @worker_type, :job_key => :importer) MiddleMan.ask_work(:worker => @worker_type, :job_key => :importer, :worker_method => :do_work, :data => { :zoom_class => @zoom_class,...
2006 Feb 07
3
help with relationship
Let''s imagine we are modelling a company that have several shops. I have a Worker model and a Shop model. A worker belongs_to a shop, and each shop has_many workers. But, in a shop there''s a distinguished worker that is the supervisor create table shops ( ... worker_id integer -- the supervisor ); How would you express this relationship?