houdini/app/models/nonprofit_account.rb
2019-08-02 19:07:24 +02:00

14 lines
339 B
Ruby

# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
class NonprofitAccount < ApplicationRecord
#TODO
# attr_accessible \
# :stripe_account_id, #str
# :nonprofit, :nonprofit_id #int
belongs_to :nonprofit
validates :nonprofit, presence: true
validates :stripe_account_id, presence: true
end