Permalink
Browse files

Update models

  • Loading branch information...
michaelsimon committed Apr 10, 2016
1 parent 0e5432a commit 554b6718247f03fe9e442bdc2192d77386e75ee3
Showing with 4 additions and 0 deletions.
  1. +1 −0 app/models/act.rb
  2. +2 −0 app/models/user.rb
  3. +1 −0 app/models/venue.rb
View
@@ -2,6 +2,7 @@ class Act < ActiveRecord::Base
validates_presence_of :name, :description, :size, :location, :website
has_many :shows
belongs_to :user
def slug
self.name.strip.downcase.gsub(' ','-')
View
@@ -1,6 +1,8 @@
class User < ActiveRecord::Base
validates_presence_of :name, :email
has_many :shows
has_many :venues
has_many :acts
has_secure_password
end
View
@@ -1,5 +1,6 @@
class Venue < ActiveRecord::Base
validates_presence_of :name, :address, :zipcode, :phone, :email, :website
has_many :shows
belongs_to :user
end

0 comments on commit 554b671

Please sign in to comment.