2014-08-10 21:17:06 +03:00
|
|
|
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
|
2014-09-04 00:39:54 +03:00
|
|
|
validates :agreement, acceptance: true
|
2014-08-10 21:17:06 +03:00
|
|
|
|
2014-09-02 18:11:35 +03:00
|
|
|
private
|
|
|
|
|
2015-04-17 02:02:17 +03:00
|
|
|
def self.inheritance_column
|
|
|
|
'something'
|
2014-09-02 18:11:35 +03:00
|
|
|
end
|
2014-08-10 21:17:06 +03:00
|
|
|
end
|