socialforge/app/models/apply_add_schools.rb

9 lines
301 B
Ruby
Raw Normal View History

class ApplyAddSchools < ActiveRecord::Base
2016-07-25 10:59:08 +08:00
# status0 未审批 1 已批阅
attr_accessible :address, :city, :name, :province, :remarks, :school_id, :status
2016-07-28 20:01:22 +08:00
has_many :applied_messages, :class_name =>'AppliedMessage', :as => :applied
belongs_to :school
2016-07-27 10:46:48 +08:00
2016-08-01 15:44:18 +08:00
#after_create :send_massage
end