Introduce Booths and Call for Booths to OSEM
This commit is contained in:
parent
4d895ae3bc
commit
3172cfcbb2
22 changed files with 443 additions and 1 deletions
16
app/models/booth.rb
Normal file
16
app/models/booth.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
class Booth < ActiveRecord::Base
|
||||
belongs_to :conference
|
||||
has_many :booth_requests
|
||||
has_many :users, through: :booth_requests
|
||||
|
||||
validates :title,
|
||||
uniqueness: { case_sensitive: fasle},
|
||||
presence: true
|
||||
|
||||
validates :description,
|
||||
:reasoning,
|
||||
:state,
|
||||
:logo_link
|
||||
:conference_id,
|
||||
presence: true
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue