5c612dfb86
Remove the no longer needed functionality of Event and add specs that define the still needed parts.
14 lines
345 B
Ruby
14 lines
345 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
|
|
|
|
private
|
|
|
|
def self.inheritance_column
|
|
'something'
|
|
end
|
|
end
|