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

rake tasks failing with invalid reference to Organization model #16048

Open
sabman opened this issue Jan 14, 2021 · 0 comments
Open

rake tasks failing with invalid reference to Organization model #16048

sabman opened this issue Jan 14, 2021 · 0 comments

Comments

@sabman
Copy link

sabman commented Jan 14, 2021

Problem

Organization class not referencing ActiveRecord in the organization related rake tasks (e.g. db_maintenance.rake).

For example the rake task set_organization_quota:

organization = Organization.filter(:name=> args[:organization_name]).first

seems to be referencing the old Sequel models.

Cause

I suspects it's bug introduced during the migration of Organization model to ActiveRecord #15884

Possible Fix

requires changing all

Organization.filter

to

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

No branches or pull requests

1 participant