Adds sponsorship levels model
This commit is contained in:
parent
069cc0eb4c
commit
8bce579283
6 changed files with 69 additions and 9 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
5
app/models/sponsorship_level.rb
Normal file
5
app/models/sponsorship_level.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class SponsorshipLevel < ActiveRecord::Base
|
||||
attr_accessible :title, :donation_amount
|
||||
validates_presence_of :title
|
||||
belongs_to :conference
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue