Adds sponsorship levels model

This commit is contained in:
Gopesh Tulsyan 2014-06-05 11:56:04 +05:30
parent 069cc0eb4c
commit 8bce579283
6 changed files with 69 additions and 9 deletions

View file

@ -31,6 +31,7 @@ class Conference < ActiveRecord::Base
has_many :vdays, :dependent => :destroy
has_many :vpositions, :dependent => :destroy
has_many :vchoices, :dependent => :destroy
has_many :sponsorship_levels, dependent: :destroy
belongs_to :venue

View file

@ -0,0 +1,5 @@
class SponsorshipLevel < ActiveRecord::Base
attr_accessible :title, :donation_amount
validates_presence_of :title
belongs_to :conference
end