You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
psfpeqmhf/lib/tasks/migration_is_random_attribu...

7 lines
282 B

namespace :migration_is_random_attribute do
desc "将所有课堂试卷和试卷库的is_random赋值"
task :execute => :environment do
ExaminationBank.where(is_random: nil).update_all(is_random: true)
Exercise.where(is_random: nil).update_all(is_random: true)
end
end