Merge f0b19eddb3 into a41f76cca1
This commit is contained in:
commit
7b6029224b
58 changed files with 1198 additions and 1272 deletions
|
|
@ -55,7 +55,7 @@ class Conference < ActiveRecord::Base
|
|||
has_many :participants, through: :registrations, source: :user
|
||||
has_many :vdays, dependent: :destroy
|
||||
has_many :vpositions, dependent: :destroy
|
||||
has_many :sponsorship_levels, dependent: :destroy
|
||||
has_many :sponsorship_levels, -> { order('position ASC') }, dependent: :destroy
|
||||
has_many :sponsors, dependent: :destroy
|
||||
has_many :photos, dependent: :destroy
|
||||
has_many :targets, dependent: :destroy
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@ class SponsorshipLevel < ActiveRecord::Base
|
|||
attr_accessible :title, :conference_id
|
||||
validates_presence_of :title
|
||||
belongs_to :conference
|
||||
acts_as_list scope: :conference
|
||||
has_many :sponsors
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue