clarion/app/models/event.rb
2015-04-17 03:56:14 +03:00

8 lines
281 B
Ruby

class Event < ActiveRecord::Base
validates :title, presence: true
validates :length, presence: true, numericality: {only_integer: true, greater_than: 0}
validates :abstract, presence: true
validates :description, presence: true
validates :agreement, acceptance: true
end