Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveRecord::InvalidForeignKey in bootcamp#start_enrolling #7481

Open
iHiD opened this issue Feb 10, 2025 · 0 comments
Open

ActiveRecord::InvalidForeignKey in bootcamp#start_enrolling #7481

iHiD opened this issue Feb 10, 2025 · 0 comments

Comments

@iHiD
Copy link
Member

iHiD commented Feb 10, 2025

Error in v3

ActiveRecord::InvalidForeignKey in bootcamp#start_enrolling
Mysql2::Error: Cannot add or update a child row: a foreign key constraint fails (exercism.user_bootcamp_data, CONSTRAINT fk_rails_693771182b FOREIGN KEY (user_id) REFERENCES users (id))

View on Bugsnag

Stacktrace

app/controllers/bootcamp_controller.rb:182 - create_bootcamp_data!
app/controllers/bootcamp_controller.rb:28 - start_enrolling
app/controllers/application_controller.rb:93 - mark_notifications_as_read!
app/controllers/application_controller.rb:21 - process_action

View full stacktrace

Created automatically via Bugsnag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant