Sponsor dashboard added, with sponsor component for splash page

This commit is contained in:
Gopesh Tulsyan 2014-05-26 13:51:03 +05:30
parent 643b8b173a
commit ea119a8158
36 changed files with 549 additions and 12 deletions

View file

@ -0,0 +1,11 @@
class SponsorshipRegistration < ActiveRecord::Base
attr_accessible :name, :email_id, :contact_no, :amount_donated, :method_of_donation,
:sponsorship_level_id, :conference_id, :organization_id
belongs_to :organization
belongs_to :sponsorship_level
belongs_to :conference
validates_presence_of :name, :email_id, :contact_no, :amount_donated,
:method_of_donation, :sponsorship_level,
:conference, :organization
validates_uniqueness_of :email_id
end