删除空白的答案

dev_forum
daiao 5 years ago
parent f5bc381187
commit 417d0793f8

@ -0,0 +1,6 @@
class DeleteContentsIsNullForChallengeAnswers < ActiveRecord::Migration[5.2]
def change
contents = ChallengeAnswer.where("contents = ''")
contents.delete_all
end
end
Loading…
Cancel
Save