class Prescription < ActiveRecord::Base belongs_to :patient has_and_belongs_to_many :diagnoses end