8 lines
256 B
Ruby
8 lines
256 B
Ruby
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
|