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

Error when running ForeignKeyCascadeChecker #217

Open
gravitystorm opened this issue Oct 25, 2023 · 1 comment
Open

Error when running ForeignKeyCascadeChecker #217

gravitystorm opened this issue Oct 25, 2023 · 1 comment

Comments

@gravitystorm
Copy link

During the first run of database_checker on our codebase, it reported an error and asked for it to be filed here. It might just be an unusual problem in our codebase, so I don't mind if this is closed wontfix!

Metadata:
model: Trace
association: points
checker: DatabaseConsistency::Checkers::ForeignKeyCascadeChecker
Stack trace:
/home/andy/.rbenv/versions/3.0.6/lib/ruby/gems/3.0.0/gems/activerecord-7.1.1/lib/active_record/reflection.rb:345:in `primary_key': Unknown primary key for table gps_points in model Tracepoint. (ActiveRecord::UnknownPrimaryKey)

Full stacktrace attached. The application is the OpenStreetMap-website codebase, if you'd like to reproduce it or see how our models are defined.

@gravitystorm
Copy link
Author

@djezzzl djezzzl added bug Something isn't working investigate and removed bug Something isn't working labels Dec 26, 2024
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

2 participants