lib/event.rb in ish_models-0.0.33.50 vs lib/event.rb in ish_models-0.0.33.52
- old
+ new
@@ -5,17 +5,18 @@
include Mongoid::Timestamps
field :name, :type => String
validates :name, :presence => true, :uniqueness => true
- field :name_seo, :type => String
- validates :name_seo, :presence => true, :uniqueness => true
+ field :eventname, :type => String
+ validates :eventname, :presence => true, :uniqueness => true
- field :descr, :type => String
+ field :description, :type => String
field :date, :type => DateTime
validates :date, :presence => true
belongs_to :city
validates :city, :presence => true
end
+