require "dorsale/search" module CustomerVault class Individual < Person self.table_name = 'customer_vault_individuals' include Dorsale::Search validates :first_name, presence: true validates :last_name, presence: true def name [self.last_name, self.first_name].join(', ') end end end