主机数调整

dev_local
cxt 6 years ago
parent 1ddfe358eb
commit b14aaab5c9

@ -4,7 +4,7 @@ class Department < ActiveRecord::Base
# apply_add_departments 不能关联删除 tidings表有关联
has_many :apply_add_departments
has_many :tidings, as: :container, dependent: :destroy
attr_accessible :name, :school_id, :is_auth, :identifier, :is_delete
attr_accessible :name, :school_id, :is_auth, :identifier, :is_delete, :host_count
scope :is_active, lambda{where(:is_delete => false)}
scope :is_delete, lambda{where(:is_delete => true)}

Loading…
Cancel
Save