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 for project without Action Text #53

Open
shamas- opened this issue Oct 4, 2023 · 0 comments
Open

Error for project without Action Text #53

shamas- opened this issue Oct 4, 2023 · 0 comments

Comments

@shamas-
Copy link

shamas- commented Oct 4, 2023

Reproduction steps:

  1. Use a project without Action Text set up
  2. Run bundle exec rake mass_encryption:encrypt_all_in_tracks

Expected:
3. No error

Actual:
3. Error output

ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "action_text_rich_texts" does not exist
LINE 9:  WHERE a.attrelid = '"action_text_rich_texts"'::regclass
                            ^
/Users/eriscott/development/mass_encryption/lib/mass_encryption/encryptor.rb:65:in `block in enqueue_track_encryption_jobs_for'
/Users/eriscott/development/mass_encryption/lib/mass_encryption/encryptor.rb:64:in `times'
/Users/eriscott/development/mass_encryption/lib/mass_encryption/encryptor.rb:64:in `each'
/Users/eriscott/development/mass_encryption/lib/mass_encryption/encryptor.rb:64:in `enqueue_track_encryption_jobs_for'
/Users/eriscott/development/mass_encryption/lib/mass_encryption/encryptor.rb:41:in `enqueue_encryption_jobs_for'
/Users/eriscott/development/mass_encryption/lib/mass_encryption/encryptor.rb:20:in `block in encrypt_all_later'
/Users/eriscott/development/mass_encryption/lib/mass_encryption/encryptor.rb:20:in `each'
/Users/eriscott/development/mass_encryption/lib/mass_encryption/encryptor.rb:20:in `encrypt_all_later'
/Users/eriscott/development/mass_encryption/lib/tasks/mass_encryption_tasks.rake:9:in `block (2 levels) in <main>'

Workaround: name the class you want to use in encryption via the ONLY="Klass" parameter.

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