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

ArgumentError (unknown keyword: :updated_at): #509

Closed
prativapokhrel opened this issue Feb 17, 2021 · 2 comments
Closed

ArgumentError (unknown keyword: :updated_at): #509

prativapokhrel opened this issue Feb 17, 2021 · 2 comments
Labels

Comments

@prativapokhrel
Copy link

prativapokhrel commented Feb 17, 2021

class User < ActiveRecord::Base
acts_as_paranoid
has_many :school_attendances
end

class SchoolAttendance ActiveRecord::Base
acts_as_paranoid
belongs_to :user
end

This is my setup.

Issue: when I try to destroy school_attendance record, I get ArgumentError (unknown keyword: :updated_at): in production and staging, but not in development environment. I don't know how should I debug it and what's this issue. Could please someone help me?

@andrehjr
Copy link

andrehjr commented Oct 3, 2021

@prativapokhrel by any chance are you using newrelic_rpm? I got this very same error when using an outdated newrelic_rpm version with Ruby 2.7+. If that's the case, the issue is not related to paranoia.

If you can provide a backtrace of that error that would be helpful.

@mathieujobin
Copy link
Collaborator

please reopen if this is still a problem and you can answer the question

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

No branches or pull requests

3 participants