dev_course
daiao 6 years ago
parent db62c1d6c3
commit 899c7fb673

@ -1,6 +1,6 @@
class RemoveShixunLongTextForShixuns < ActiveRecord::Migration[5.2] class RemoveShixunLongTextForShixuns < ActiveRecord::Migration[5.2]
def change def change
if Shixun.first.description.present? if Shixun.first.has_attribute?(:description)
remove_columns :shixuns, :description, :propaedeutics, :evaluate_script remove_columns :shixuns, :description, :propaedeutics, :evaluate_script
end end
end end

Loading…
Cancel
Save