移除实训的长类型的字段

dev_course
daiao 6 years ago
parent 05cafcff8c
commit db62c1d6c3

@ -11,8 +11,5 @@ class ModifyShixunInfoForShixuns < ActiveRecord::Migration[5.2]
evaluate_script: shixun[:evaluate_script], shixun_id: shixun.id)
end
end
if Shixun.first.description.present?
remove_columns :shixuns, :description, :propaedeutics, :evaluate_script
end
end
end

@ -0,0 +1,7 @@
class RemoveShixunLongTextForShixuns < ActiveRecord::Migration[5.2]
def change
if Shixun.first.description.present?
remove_columns :shixuns, :description, :propaedeutics, :evaluate_script
end
end
end
Loading…
Cancel
Save