socialforge/app/models/system_message.rb

9 lines
262 B
Ruby
Raw Normal View History

class SystemMessage < ActiveRecord::Base
2015-09-17 16:23:09 +08:00
attr_accessible :content, :id, :user_id, :description, :subject
belongs_to :user
2015-09-17 16:23:09 +08:00
validates :subject, presence: true
# validates :description, presence: true
2015-09-14 15:33:11 +08:00
validates_length_of :description, maximum: 10000
end