module CustomerVault class Individual < Person self.table_name = 'customer_vault_individuals' def name [self.last_name, self.first_name].join(', ') end validates_presence_of :first_name validates_presence_of :last_name has_one :address, class_name: 'Dorsale::Address', as: :addressable accepts_nested_attributes_for :address, allow_destroy: true end end