retrospring/app/models/question.rb

7 lines
127 B
Ruby
Raw Normal View History

2014-10-28 06:36:38 +01:00
class Question < ActiveRecord::Base
belongs_to :user
2014-12-07 20:13:45 +01:00
has_many :answers
2014-12-08 15:34:37 +01:00
2014-12-08 23:02:31 +01:00
validates :content, length: { maximum: 255 }
2014-10-28 06:36:38 +01:00
end