修改quill的迁移文件

This commit is contained in:
sylor_huang@126.com 2020-04-29 18:23:33 +08:00
parent 609675afe9
commit efec15a649
1 changed files with 1 additions and 1 deletions

View File

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