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.
educoder/db/migrate/20190325022227_add_is_publi...

9 lines
282 B

class AddIsPublicToGraduationTask < ActiveRecord::Migration[5.2]
def change
add_column :graduation_tasks, :is_public, :boolean, default: false
add_column :graduation_tasks, :late_time, :datetime
GraduationTask.where(status: 3).update_all(status: 4)
end
end