新增:许可证排序字段

This commit is contained in:
2024-08-09 11:22:45 +08:00
parent 6ba2d39e9b
commit bd9ca0439c
5 changed files with 24 additions and 3 deletions

View File

@@ -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