грабли прерваны! NoMethodError: неопределенный метод `alias_method_chain'для ActiveRecord::SchemaDumper:Class

когда я добавил чужой гем в gemfile, это происходит, и я обновляю рельсы с 4.1 до 6.1: любое решение, у кого есть быстрая публикация, в противном случае вы можете отправить письмо по адресу santu.essence@gmail.com

/usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/schema_dumper.rb:6:in block in <module:SchemaDumper>' /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/concern.rb:136:in class_eval '/usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/concern.rb:136:in append_features' /usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/loader.rb:9:in включить '/usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/loader.rb:9:in block in load' /usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/loader.rb:8:in class_eval '/usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/loader.rb:8:in load' /usr/local/bundle/bundler/gems/foreigner-0496762a6c0a/lib/foreigner/railtie.rb:5:in блок (2 уровня) в классе: Railtie'/usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:71:in class_eval' /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:71:in блок в execute_hook'/usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:61:in with_execution_control' /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:66:in execute_hook'/usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:52:in block in run_load_hooks' /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:51:in каждый '/usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:51:in run_load_hooks' /usr/local/bundle/gems/activerecord-6.1.4.1/lib/active_record/base.rb:315:in модуль: ActiveRecord '/usr/local/bundle/gems/activerecord-6.1.4.1/lib/active_record/base.rb:15:in require' worker_1 | /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:35:in require' worker_1 | /usr/local/bundle/gems/activerecord-6.1.4.1/lib/active_record/railtie.rb:132:in блок (3 уровня) в классе: Railtie'worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:71:in class_eval' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:71:in блок в execute_hook'worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:61:in with_execution_control' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:66:in execute_hook'worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:43:in block in on_load' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:42:in каждый 'worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:42:in on_load' worker_1 | /usr/local/bundle/gems/activerecord-6.1.4.1/lib/active_record/railtie.rb:131:in блок (2 уровня) в классе: Railtie'worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:68:in block in execute_hook' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:61:in with_execution_control 'worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:66:in execute_hook' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:52:in блок в run_load_hooks 'worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:51:in each' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:51:in run_load_hooks 'worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/application/finisher.rb:140:in block in <module:Finisher>' worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in instance_exec 'worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in run' worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:61:in блок в worker_1 run_initializers | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/initializable.rb:60:in run_initializers' worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/application.rb:391:in инициализировать! ' worker_1 | /usr/src/app/config/environment.rb:4:in <top (required)>' worker_1 | /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:35:in требуется 'worker_1 | /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:35:in require' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in блокировать в require 'worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in load_dependency' worker_1 | /usr/local/bundle/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in требуется 'worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/application.rb:367:in require_environment!' worker_1 | /usr/local/bundle/gems/railties-6.1.4.1/lib/rails/application.rb:533:in блок в run_tasks_blocks 'worker_1 | /usr/local/bundle/gems/rake-13.0.6/exe/rake:27:in `<top (обязательно)>'worker_1 | Задачи: TOP => resque:work => resque:preload => resque:setup => environmentworker_1 | (Просмотрите полную трассировку, запустив задачу с --trace)

0 ответов

Другие вопросы по тегам