mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 10:06:03 +01:00
6 lines
127 B
Ruby
6 lines
127 B
Ruby
class Question < ActiveRecord::Base
|
|
belongs_to :user
|
|
has_many :answers
|
|
|
|
validates :content, length: { maximum: 255 }
|
|
end
|