Skip to content

Instantly share code, notes, and snippets.

@leemcalilly
Created July 2, 2013 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leemcalilly/012d6eae6b207beb147a to your computer and use it in GitHub Desktop.
Save leemcalilly/012d6eae6b207beb147a to your computer and use it in GitHub Desktop.
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