mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 04:35:45 +08:00
add: reversed keyword and api forbidden
This commit is contained in:
16
app/models/reversed_keyword.rb
Normal file
16
app/models/reversed_keyword.rb
Normal 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
|
||||
Reference in New Issue
Block a user