Added photo model
This commit is contained in:
parent
0f697f3dbe
commit
69ddea47dd
6 changed files with 62 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class Conference < ActiveRecord::Base
|
|||
has_many :vchoices, :dependent => :destroy
|
||||
has_many :sponsorship_levels, dependent: :destroy
|
||||
has_many :sponsors, dependent: :destroy
|
||||
|
||||
has_many :photos, dependent: :destroy
|
||||
belongs_to :venue
|
||||
|
||||
accepts_nested_attributes_for :rooms, :reject_if => proc {|r| r["name"].blank?}, :allow_destroy => true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue