Interest type not set when copying interests
Sentry Issue: PROJECT-FORUM-4T
Mysql2::Error: Field 'interest_type' doesn't have a default value
app/controllers/concerns/preference_mapper.rb:54:in `block in copy_project_interests'
ProjectInterest.create(user_id: user.id, project_id: project.id)
app/controllers/concerns/preference_mapper.rb:49:in `copy_project_interests'
.each do |pi|
app/controllers/course_editions/projects_controller.rb:68:in `copy_interests'
copy_project_interests(current_user, CourseEdition.find_by(id: params[:previous_course_edition]), @course_edition)
app/controllers/application_controller.rb:76:in `switch_locale'
I18n.with_locale(locale, &action)
...
(139 additional frame(s) were not displayed)
ActiveRecord::NotNullViolation: Mysql2::Error: Field 'interest_type' doesn't have a default value