class ChangeAssignmentsDetailsNotNull < ActiveRecord::Migration[5.2]
  def change
    change_column_default :assignments, :student_form_groups, false
    change_column_default :assignments, :group_name_autogenerated, true
    change_column_default :assignments, :group_name_displayed, false
    change_column_default :assignments, :invalid_override, false
    change_column_default :assignments, :section_groups_only, false
    change_column_default :assignments, :only_required_files, false
    change_column_default :assignments, :allow_remarks, false

    change_column_null :assignments, :student_form_groups, false
    change_column_null :assignments, :group_name_autogenerated, false
    change_column_null :assignments, :group_name_displayed, false
    change_column_null :assignments, :invalid_override, false
    change_column_null :assignments, :section_groups_only, false
    change_column_null :assignments, :only_required_files, false
    change_column_null :assignments, :allow_web_submits, false
    change_column_null :assignments, :section_due_dates_type, false
    change_column_null :assignments, :display_grader_names_to_students, false
    change_column_null :assignments, :assign_graders_to_criteria, false
    change_column_null :assignments, :unlimited_tokens, false
    change_column_null :assignments, :is_hidden, false
    change_column_null :assignments, :vcs_submit, false
    change_column_null :assignments, :non_regenerating_tokens, false
  end
end
