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

13 lines
326 B
Ruby

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