Skip to content

Error for project without Action Text #53

@shamas-

Description

@shamas-

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions