Skip to content

Instantly share code, notes, and snippets.

@radar
Created July 27, 2008 01:52
Show Gist options
  • Save radar/2709 to your computer and use it in GitHub Desktop.
Save radar/2709 to your computer and use it in GitHub Desktop.
class Employee < ActiveRecord::Base
has_many :events
belongs_to :waging
end
class Event < ActiveRecord::Base
belongs_to :employee
end
How should i find all of the events which belongs to employees with one of the wagings?
class Waging < ActiveRecord::Base
has_many :employees
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment