12 lines
343 B
Ruby
12 lines
343 B
Ruby
# frozen_string_literal: true
|
|
|
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
|
class NonprofitAccount < ApplicationRecord
|
|
# :stripe_account_id, #str
|
|
# :nonprofit, :nonprofit_id #int
|
|
|
|
belongs_to :nonprofit
|
|
|
|
validates :nonprofit, presence: true
|
|
validates :stripe_account_id, presence: true
|
|
end
|