create_venue_commercial added
This commit is contained in:
parent
154f4a400c
commit
6f667a865b
4 changed files with 31 additions and 3 deletions
|
|
@ -4,6 +4,7 @@ class Venue < ActiveRecord::Base
|
|||
has_many :rooms, dependent: :destroy
|
||||
before_create :generate_guid
|
||||
|
||||
accepts_nested_attributes_for :commercial, allow_destroy: true
|
||||
validates :name, :street, :city, :country, presence: true
|
||||
validates :conference_id, presence: true, uniqueness: true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue