class SepaAccountHolder < ApplicationRecord belongs_to :group belongs_to :user def all_fields_present? iban.present? && bic.present? && mandate_id.present? && user_id.present? && mandate_date_of_signature.present? && group_id.present? end end