create_venue_commercial added

This commit is contained in:
Shriyansh 2016-04-03 22:08:46 +05:30
parent 154f4a400c
commit 6f667a865b
4 changed files with 31 additions and 3 deletions

View file

@ -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