Project

General

Profile

Actions

Bug #3232

closed

undefined local variable or method `acts_as_*' for class TableConfig (NameError)

Added by liaham 9 days ago. Updated 9 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/09/2025
Due date:
04/09/2025
% Done:

100%

Estimated time:
Affected Version:
Compatible Redmine Version:
6.0.z

Description

rake aborted!
StandardError: An error has occurred, all later migrations canceled: (StandardError)

undefined local variable or method `acts_as_positioned' for class TableConfig
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
~/redmine/plugins/redmine_table_calculation/app/models/table_config.rb:38:in `<class:TableConfig>'
~/redmine/plugins/redmine_table_calculation/app/models/table_config.rb:21:in `<top (required)>'
~/redmine/gem_home/gems/zeitwerk-2.7.2/lib/zeitwerk/core_ext/kernel.rb:26:in `require'
~/redmine/gem_home/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
~/redmine/plugins/redmine_table_calculation/db/migrate/23_add_position_to_table_configs.rb:24:in `up'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:957:in `up'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:997:in `public_send'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:997:in `exec_migration'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:978:in `block (2 levels) in migrate'
~/redmine/gem_home/gems/benchmark-0.4.0/lib/benchmark.rb:304:in `measure'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:977:in `block in migrate'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:415:in `with_connection'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:976:in `migrate'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:1190:in `migrate'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:1538:in `block in execute_migration_in_transaction'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:1591:in `ddl_transaction'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:1537:in `execute_migration_in_transaction'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:1512:in `each'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:1512:in `migrate_without_lock'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:1457:in `block in migrate'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:1609:in `with_advisory_lock'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:1457:in `migrate'
~/redmine/lib/redmine/plugin.rb:493:in `up'
~/redmine/gem_home/gems/activerecord-7.2.2.1/lib/active_record/migration.rb:1239:in `migrate'
~/redmine/lib/redmine/plugin.rb:529:in `migrate_plugin'
~/redmine/lib/redmine/plugin.rb:466:in `migrate'
~/redmine/lib/redmine/plugin.rb:480:in `block in migrate'
~/redmine/lib/redmine/plugin.rb:479:in `each'
~/redmine/lib/redmine/plugin.rb:479:in `migrate'
~/redmine/lib/tasks/redmine.rake:150:in `block (3 levels) in <top (required)>'
~/redmine/gem_home/gems/exception_notification-5.0.0/lib/exception_notification/rake.rb:12:in `execute'
~/redmine/lib/tasks/redmine.rake:73:in `block (2 levels) in <top (required)>'
~/redmine/gem_home/gems/exception_notification-5.0.0/lib/exception_notification/rake.rb:12:in `execute'
~/redmine/gem_home/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'

Actions #1

Updated by liaham 9 days ago

Same problem with acts_as_customizable!

Actions #2

Updated by liaham 9 days ago

  • Subject changed from undefined local variable or method `acts_as_positioned' for class TableConfig (NameError) to undefined local variable or method `acts_as_*' for class TableConfig (NameError)
  • Status changed from New to In Progress
  • Start date set to 04/09/2025
  • % Done changed from 0 to 20
Actions #3

Updated by liaham 9 days ago

  • Due date set to 04/09/2025
  • Status changed from In Progress to Closed
  • % Done changed from 20 to 100
Actions

Also available in: Atom PDF