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