socialforge/app/models/system_message.rb

8 lines
189 B
Ruby

class SystemMessage < ActiveRecord::Base
attr_accessible :content, :id, :user_id
belongs_to :user
validates :content, presence: true
validates_length_of :content, maximum: 255
end