houdini/app/models/nonprofit_account.rb

15 lines
378 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# 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