add: reversed keyword and api forbidden

This commit is contained in:
2021-08-31 10:18:00 +08:00
parent d1246b8e30
commit fe7dfcea52
6 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# == Schema Information
#
# Table name: reversed_keywords
#
# id :integer not null, primary key
# identifier :string(255)
# description :text(65535)
# closed :boolean default("0")
# created_at :datetime not null
# updated_at :datetime not null
#
class ReversedKeyword < ApplicationRecord
scope :is_reversed, -> (identifier){where(identifier: identifier, closed: false) if identifier.present?}
end