class Invoice < ApplicationRecord belongs_to :customer scope :settled, -> { where(status: "settled") } end