mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
change public to static_file
This commit is contained in:
@@ -28,7 +28,7 @@ class Page < ApplicationRecord
|
||||
belongs_to :project
|
||||
|
||||
# language_frame 前端语言框架
|
||||
enum language_frame: { hugo: 0, jekyll: 1, hexo: 2, public: 3}
|
||||
enum language_frame: { hugo: 0, jekyll: 1, hexo: 2, static_file: 3}
|
||||
|
||||
after_create do
|
||||
PageService.genernate_user(user_id)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#
|
||||
|
||||
class PageTheme < ApplicationRecord
|
||||
enum language_frame: { hugo: 0, jeklly: 1, hexo: 2}
|
||||
enum language_frame: { hugo: 0, jeklly: 1, hexo: 2, static_file:3}
|
||||
validates :name, presence: {message: "主题名不能为空"}, uniqueness: {message: "主题名已存在",scope: :language_frame},length: {maximum: 255}
|
||||
|
||||
def image
|
||||
|
||||
Reference in New Issue
Block a user