Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Checkout < ActiveRecord::Base
validates_presence_of :job, :employee, :shift, :date, :hours, :user_id
validates_numericality_of :sales, :tips, :owed, :collected
belongs_to :user
has_many :employments
has_many :employees, :through => :employments
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment