introduce organizations
This commit is contained in:
parent
bf54487a19
commit
8edf896d86
21 changed files with 345 additions and 4 deletions
7
app/models/organization.rb
Normal file
7
app/models/organization.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class Organization < ActiveRecord::Base
|
||||
has_many :conferences, dependent: :destroy
|
||||
|
||||
validates :name, presence: true
|
||||
|
||||
mount_uploader :picture, PictureUploader, mount_on: :picture
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue