search for: operation_typ

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

Did you mean: operation_type
2005 Aug 28
6
ActiveRecord Question
...er), each Operation is associated with an OperationType. Each Operation may be associated with more then one User. So the model goes like this: class User < ActiveRecord::Base has_and_belongs_to_many :operations end class Operation <ActiveRecord::Base belongs_to :operation_type, has_and_belongs_to_many :users end class OperationType <ActiveRecord::Base has_many :operations end And I have users, operations, operations_users (join table) & operation_types tables as needed. Now for a given user, I want to fetch all the types of the operations associated with...
2005 Aug 28
1
Active Record problem
...er), each Operation is associated with an OperationType. Each Operation may be associated with more then one User. So the model goes like this: class User < ActiveRecord::Base has_and_belongs_to_many :operations end class Operation <ActiveRecord::Base belongs_to :operation_type, has_and_belongs_to_many :users end class OperationType <ActiveRecord::Base has_many :operations end And I have users, operations, operations_users (join table) & operation_types tables as needed. Now for a given user, I want to fetch all the types of the operations associated with...