module Ecom module Core class Payroll < ApplicationRecord validates :month, :year, presence: true has_many :payments, class_name: 'Ecom::Core::Payment' belongs_to :project end end end