mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
新增:许可证排序字段
This commit is contained in:
@@ -7,10 +7,12 @@
|
||||
# content :text(65535)
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# is_secret :boolean default("0")
|
||||
# position :integer default("0")
|
||||
#
|
||||
|
||||
class License < ApplicationRecord
|
||||
default_scope { order(position: :desc) }
|
||||
|
||||
include Projectable
|
||||
|
||||
validates :name, :content, presence: true
|
||||
|
||||
Reference in New Issue
Block a user