change public to static_file

This commit is contained in:
呱呱呱
2024-04-16 15:18:15 +08:00
parent 21fb916c90
commit d5fb8587ee
3 changed files with 3 additions and 3 deletions

View File

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

View File

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