Skip to content

Instantly share code, notes, and snippets.

@peterb
Created August 5, 2009 23:30
Show Gist options
  • Save peterb/163044 to your computer and use it in GitHub Desktop.
Save peterb/163044 to your computer and use it in GitHub Desktop.
class Pharmacist < ActiveRecord::Base
has_many :wards
has_many :beds, :through => :wards
has_many :admissions, :through => :beds
has_many :patients, :through => :admissions
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment