2015-09-09 17:05:32 +08:00
|
|
|
class SystemMessage < ActiveRecord::Base
|
2015-09-17 16:23:09 +08:00
|
|
|
attr_accessible :content, :id, :user_id, :description, :subject
|
2015-09-09 17:05:32 +08:00
|
|
|
belongs_to :user
|
2015-09-11 15:39:46 +08:00
|
|
|
|
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
|
2015-09-09 17:05:32 +08:00
|
|
|
end
|