lib/venue.rb in ish_models-0.0.33.134 vs lib/venue.rb in ish_models-0.0.33.135

- old
+ new

@@ -1,17 +1,19 @@ class Venue include ::Mongoid::Document include ::Mongoid::Timestamps + field :address + field :name, :type => String validates :name, :uniqueness => true, :allow_nil => false field :name_seo, :type => String validates :name_seo, :uniqueness => true, :allow_nil => false - + field :subhead field :descr - + field :is_trash, :type => Boolean, :default => false scope :fresh, ->{ where({ :is_trash => false }) } scope :trash, ->{ where({ :is_trash => true }) } field :is_public, :type => Boolean, :default => true