-
Notifications
You must be signed in to change notification settings - Fork 376
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
Fail to upgrade to 5.0.2 #549
Comments
Hi @leonardow-unep-wcmc, you'll need to copy the latest version of that method and adapt it to your model. I believe you'll want to replace:
|
Thanks for your reply. Now I understand that the reason for the overriding is due to column names changed in v1.4.0. After apply your suggestion,
I solve it by using the following:
Could you tell me if you think the above approach is feasible? Would it raise any other issues? |
That looks reasonable to me (along with the |
Hi,
I upgrading an application which was using ahoy_matey 1.0.1.
I follow the links below, to upgrade from 1.6.1 > 2.2.1 > 3.3.0 > 4.2.1 > 5.0.2
https://github.com/ankane/ahoy/tree/v1.6.1?tab=readme-ov-file#upgrading
https://github.com/ankane/ahoy/blob/v2.2.1/docs/Ahoy-2-Upgrade.md
https://github.com/ankane/ahoy/tree/v2.2.1?tab=readme-ov-file#upgrading
https://github.com/ankane/ahoy/tree/v3.3.0?tab=readme-ov-file#upgrading
https://github.com/ankane/ahoy/tree/v4.2.1?tab=readme-ov-file#upgrading
https://github.com/ankane/ahoy/tree/v5.0.2?tab=readme-ov-file#upgrading
All good to 4.2.1, however when I upgrade to 5.0.2, it raise
SystemStackError: stack level too deep
I traced the code, and found that a method in
config/initializers/ahoy.rb
, which 2.0 upgrade guide asked me to add, break.I also changed the index from 5.0 upgrade, which ask me to create an index:
However my database column is named
visitor_id
notvisitor_token
, so I changed it to:But I don't think this is related to the error.
Should I just remove the
visit
method in initializers? What is the right way to fix this?Any input will be appreciated, thanks.
The text was updated successfully, but these errors were encountered: