module Ecom::Core class Payment < ApplicationRecord belongs_to :payroll validates :from, :to, presence: true end end