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

17 lines
395 B
Ruby

# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
class CampaignGift < ApplicationRecord
#TODO
# attr_accessible \
# :donation_id,
# :donation,
# :campaign_gift_option,
# :campaign_gift_option_id
belongs_to :donation
belongs_to :campaign_gift_option
validates :donation, presence: true
validates :campaign_gift_option, presence: true
end