Sha256: 5dac0c15dc4e20f8ec7dbfd19f24a34c748506826a653ea6179f25155c2eef5a
Contents?: true
Size: 384 Bytes
Versions: 12
Compression:
Stored size: 384 Bytes
Contents
module Ecom module Core class Payroll < ApplicationRecord validates :month, :year, presence: true has_many :payments, class_name: 'Ecom::Core::Payment' belongs_to :project scope :by_project, ->(id) { where(project_id: id) } scope :by_month, ->(month) { where(month: month) } scope :by_year, ->(year) { where(year: year) } end end end
Version data entries
12 entries across 12 versions & 1 rubygems