diff --git a/app/models/memo.rb b/app/models/memo.rb index 850d76fee..bb71e9014 100644 --- a/app/models/memo.rb +++ b/app/models/memo.rb @@ -46,6 +46,8 @@ class Memo < ApplicationRecord belongs_to :author, :class_name => "User", foreign_key: :author_id, counter_cache: true + enum destroy_status: {common: 0, apply_destroy: 1} + def meno_tag_name tag_id.to_i > 3 ? "" : ["", "交流", "求助", "新闻"][tag_id.to_i] end