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

Rails 6.0.3 - wrong constant name primary - Migrations #29

Open
alecslupu opened this issue May 30, 2020 · 0 comments
Open

Rails 6.0.3 - wrong constant name primary - Migrations #29

alecslupu opened this issue May 30, 2020 · 0 comments

Comments

@alecslupu
Copy link

The Whisper::ActiveRecord is causing regular rails migrations to fail when using Rails 6.0.3.1 branch

wrong constant name primary
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/inflector/methods.rb:282:in `const_get'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/inflector/methods.rb:282:in `block in constantize'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/inflector/methods.rb:280:in `each'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/inflector/methods.rb:280:in `inject'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/inflector/methods.rb:280:in `constantize'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/core_ext/module/introspection.rb:72:in `module_parents'
/lib/ruby/gems/2.5.0/gems/activemodel-6.0.3.1/lib/active_model/naming.rb:254:in `model_name'
/lib/ruby/gems/2.5.0/gems/wisper-activerecord-1.0.0/lib/wisper/active_record/publisher.rb:51:in `broadcast_model_name_key'
/lib/ruby/gems/2.5.0/gems/wisper-activerecord-1.0.0/lib/wisper/active_record/publisher.rb:43:in `after_commit_broadcast'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:428:in `block in make_lambda'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:273:in `block in simple'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:517:in `block in invoke_after'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:517:in `each'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:517:in `invoke_after'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:825:in `_run_commit_callbacks'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/transactions.rb:339:in `committed!'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/transaction.rb:127:in `commit_records'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/transaction.rb:265:in `block in commit_transaction'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/transaction.rb:255:in `commit_transaction'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/transaction.rb:293:in `block in within_new_transaction'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/lib/ruby/gems/2.5.0/gems/activesupport-6.0.3.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/transaction.rb:278:in `within_new_transaction'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/connection_adapters/abstract/database_statements.rb:280:in `transaction'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/transactions.rb:212:in `transaction'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/migration.rb:1361:in `ddl_transaction'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/migration.rb:1309:in `execute_migration_in_transaction'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/migration.rb:1281:in `block in migrate_without_lock'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/migration.rb:1280:in `each'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/migration.rb:1280:in `migrate_without_lock'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/migration.rb:1229:in `block in migrate'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/migration.rb:1382:in `with_advisory_lock'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/migration.rb:1229:in `migrate'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/migration.rb:1061:in `up'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/migration.rb:1036:in `migrate'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/tasks/database_tasks.rb:238:in `migrate'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/railties/databases.rake:86:in `block (3 levels) in <top (required)>'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/railties/databases.rake:84:in `each'
/lib/ruby/gems/2.5.0/gems/activerecord-6.0.3.1/lib/active_record/railties/databases.rake:84:in `block (2 levels) in <top (required)>'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/task.rb:273:in `block in execute'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/task.rb:273:in `each'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/task.rb:273:in `execute'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/task.rb:214:in `block in invoke_with_call_chain'
/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/task.rb:194:in `invoke_with_call_chain'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/task.rb:183:in `invoke'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:160:in `invoke_task'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `each'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `block in top_level'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:125:in `run_with_threads'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:110:in `top_level'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:83:in `block in run'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
/lib/ruby/gems/2.5.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
/bin/rake:23:in `load'
/bin/rake:23:in `<main>'
alecslupu added a commit to alecslupu/wisper-activerecord that referenced this issue May 30, 2020
alecslupu added a commit to alecslupu/wisper-activerecord that referenced this issue May 30, 2020
pmq20 pushed a commit to degica/wisper-activerecord that referenced this issue Jan 5, 2021
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