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