mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
修改quill的迁移文件
This commit is contained in:
@@ -54,7 +54,7 @@ class ChangeQuillToMd < ActiveRecord::Migration[5.2]
|
||||
new_content = ""
|
||||
return "" if content.blank?
|
||||
desc = JSON.parse(content)["ops"]
|
||||
unless desc.length > 0
|
||||
if desc.length > 0
|
||||
desc.each do |d|
|
||||
image = d["insert"]["image"]
|
||||
if image.present?
|
||||
|
||||
Reference in New Issue
Block a user