Задача
Я мигрирую рельсы 4.1.14
в 4.2.11.1
. Следующая ошибка возникает при тестировании или запуске приложения rails. пожалуйста, дайте мне знать, что за проблема. : Добыча:
undefined method `add_bind'
undefined method `value'
undefined method `substitute_binds'
undefined method `compile'
NoMethodError - undefined method `add_bind' for "`sessions` WHERE `sessions`.`session_id` = ":String:
arel (6.0.4) lib/arel/visitors/to_sql.rb:723:in `visit_Arel_Nodes_BindParam'
arel (6.0.4) lib/arel/visitors/reduce.rb:13:in `visit'
arel (6.0.4) lib/arel/visitors/to_sql.rb:681:in `visit_Arel_Nodes_Equality'
arel (6.0.4) lib/arel/visitors/reduce.rb:13:in `visit'
arel (6.0.4) lib/arel/visitors/to_sql.rb:795:in `block in inject_join'
arel (6.0.4) lib/arel/visitors/to_sql.rb:793:in `inject_join'
arel (6.0.4) lib/arel/visitors/to_sql.rb:650:in `visit_Arel_Nodes_And'
arel (6.0.4) lib/arel/visitors/reduce.rb:13:in `visit'
arel (6.0.4) lib/arel/visitors/to_sql.rb:255:in `block in visit_Arel_Nodes_SelectCore'
arel (6.0.4) lib/arel/visitors/to_sql.rb:254:in `visit_Arel_Nodes_SelectCore'
arel (6.0.4) lib/arel/visitors/mysql.rb:50:in `visit_Arel_Nodes_SelectCore'
arel (6.0.4) lib/arel/visitors/to_sql.rb:210:in `block in visit_Arel_Nodes_SelectStatement'
arel (6.0.4) lib/arel/visitors/to_sql.rb:209:in `visit_Arel_Nodes_SelectStatement'
arel (6.0.4) lib/arel/visitors/mysql.rb:45:in `visit_Arel_Nodes_SelectStatement'
arel (6.0.4) lib/arel/visitors/reduce.rb:13:in `visit'
arel (6.0.4) lib/arel/visitors/reduce.rb:7:in `accept'
activerecord (4.2.11.1) lib/active_record/connection_adapters/abstract/database_statements.rb:12:in `to_sql'
activerecord (4.2.11.1) lib/active_record/connection_adapters/abstract/query_cache.rb:67:in `select_all'
activerecord (4.2.11.1) lib/active_record/querying.rb:39:in `find_by_sql'
activerecord (4.2.11.1) lib/active_record/relation.rb:639:in `exec_queries'
activerecord (4.2.11.1) lib/active_record/relation.rb:515:in `load'
activerecord (4.2.11.1) lib/active_record/relation.rb:243:in `to_a'
bullet (4.14.7) lib/bullet/active_record42.rb:29:in `to_a'
activerecord (4.2.11.1) lib/active_record/relation/finder_methods.rb:500:in `find_nth_with_limit'
activerecord (4.2.11.1) lib/active_record/relation/finder_methods.rb:484:in `find_nth'
activerecord (4.2.11.1) lib/active_record/relation/finder_methods.rb:127:in `first'
activerecord-session_store (0.1.1) lib/active_record/session_store/session.rb:56:in `find_by_session_id'
activerecord-session_store (0.1.1) lib/active_record/session_store/session.rb:33:in `find_by_session_id'
activerecord-session_store (0.1.1) lib/action_dispatch/session/active_record_store.rb:66:in `block in get_session'
activerecord-session_store (0.1.1) lib/active_record/session_store/extension/logger_silencer.rb:42:in `silence'
activesupport (4.2.11.1) lib/active_support/logger.rb:64:in `block (3 levels) in broadcast'
activesupport (4.2.11.1) lib/active_support/logger_silence.rb:19:in `silence'
activesupport (4.2.11.1) lib/active_support/logger.rb:62:in `block (2 levels) in broadcast'
activerecord-session_store (0.1.1) lib/action_dispatch/session/active_record_store.rb:65:in `get_session'
rack (1.6.11) lib/rack/session/abstract/id.rb:266:in `load_session'
actionpack (4.2.11.1) lib/action_dispatch/middleware/session/abstract_store.rb:43:in `block in load_session'
actionpack (4.2.11.1) lib/action_dispatch/middleware/session/abstract_store.rb:51:in `stale_session_check!'
actionpack (4.2.11.1) lib/action_dispatch/middleware/session/abstract_store.rb:43:in `load_session'
actionpack (4.2.11.1) lib/action_dispatch/request/session.rb:180:in `load!'
actionpack (4.2.11.1) lib/action_dispatch/request/session.rb:172:in `load_for_read!'
actionpack (4.2.11.1) lib/action_dispatch/request/session.rb:89:in `[]'
app/controllers/application_controller.rb:722:in `current_user'
app/controllers/application_controller.rb:605:in `current_user_link_permission'
app/controllers/application_controller.rb:584:in `check_link_permission'
activesupport (4.2.11.1) lib/active_support/callbacks.rb:432:in `block in make_lambda'
activesupport (4.2.11.1) lib/active_support/callbacks.rb:145:in `block in halting_and_conditional'
activesupport (4.2.11.1) lib/active_support/callbacks.rb:504:in `block in call'
activesupport (4.2.11.1) lib/active_support/callbacks.rb:504:in `call'
activesupport (4.2.11.1) lib/active_support/callbacks.rb:92:in `__run_callbacks__'
activesupport (4.2.11.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
activesupport (4.2.11.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (4.2.11.1) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (4.2.11.1) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.2.11.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
activesupport (4.2.11.1) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.11.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.11.1) lib/active_support/notifications.rb:164:in `instrument'
actionpack (4.2.11.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.2.11.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
activerecord (4.2.11.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.2.11.1) lib/abstract_controller/base.rb:137:in `process'
actionview (4.2.11.1) lib/action_view/rendering.rb:30:in `process'
actionpack (4.2.11.1) lib/action_controller/metal.rb:196:in `dispatch'
actionpack (4.2.11.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.2.11.1) lib/action_controller/metal.rb:237:in `block in action'
actionpack (4.2.11.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
actionpack (4.2.11.1) lib/action_dispatch/routing/route_set.rb:43:in `serve'
actionpack (4.2.11.1) lib/action_dispatch/journey/router.rb:43:in `block in serve'
actionpack (4.2.11.1) lib/action_dispatch/journey/router.rb:30:in `serve'
actionpack (4.2.11.1) lib/action_dispatch/routing/route_set.rb:817:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
meta_request (0.4.0) lib/meta_request/middlewares/app_request_handler.rb:13:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
meta_request (0.4.0) lib/meta_request/middlewares/meta_request_handler.rb:13:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
bullet (4.14.7) lib/bullet/rack.rb:12:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/rack/error_collector.rb:50:in `traced_call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:55:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/rack/agent_hooks.rb:26:in `traced_call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:55:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/rack/browser_monitoring.rb:23:in `traced_call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:55:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/rack/developer_mode.rb:48:in `traced_call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:55:in `call'
rack (1.6.11) lib/rack/etag.rb:24:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
rack (1.6.11) lib/rack/conditionalget.rb:25:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
rack (1.6.11) lib/rack/head.rb:13:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
actionpack (4.2.11.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
actionpack (4.2.11.1) lib/action_dispatch/middleware/flash.rb:260:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
rack (1.6.11) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.6.11) lib/rack/session/abstract/id.rb:220:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
actionpack (4.2.11.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
activerecord (4.2.11.1) lib/active_record/query_cache.rb:36:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
activerecord (4.2.11.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
actionpack (4.2.11.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.2.11.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__'
activesupport (4.2.11.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
activesupport (4.2.11.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (4.2.11.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
actionpack (4.2.11.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
actionpack (4.2.11.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
better_errors (2.1.1) lib/better_errors/middleware.rb:84:in `protected_app_call'
better_errors (2.1.1) lib/better_errors/middleware.rb:79:in `better_errors_call'
better_errors (2.1.1) lib/better_errors/middleware.rb:57:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
actionpack (4.2.11.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
rack-contrib (1.4.0) lib/rack/contrib/response_headers.rb:17:in `call'
meta_request (0.4.0) lib/meta_request/middlewares/headers.rb:16:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
web-console (2.3.0) lib/web_console/middleware.rb:28:in `block in call'
web-console (2.3.0) lib/web_console/middleware.rb:18:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
actionpack (4.2.11.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
railties (4.2.11.1) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.2.11.1) lib/rails/rack/logger.rb:22:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
actionpack (4.2.11.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
rack (1.6.11) lib/rack/methodoverride.rb:22:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
rack (1.6.11) lib/rack/runtime.rb:18:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
activesupport (4.2.11.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
rack (1.6.11) lib/rack/lock.rb:17:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
actionpack (4.2.11.1) lib/action_dispatch/middleware/static.rb:120:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
rack (1.6.11) lib/rack/sendfile.rb:113:in `call'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
railties (4.2.11.1) lib/rails/engine.rb:518:in `call'
railties (4.2.11.1) lib/rails/application.rb:165:in `call'
railties (4.2.11.1) lib/rails/railtie.rb:194:in `method_missing'
newrelic_rpm (3.9.4.245) lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
rack (1.6.11) lib/rack/content_length.rb:15:in `call'
thin (1.6.2) lib/thin/connection.rb:86:in `block in pre_process'
thin (1.6.2) lib/thin/connection.rb:84:in `pre_process'
thin (1.6.2) lib/thin/connection.rb:53:in `process'
thin (1.6.2) lib/thin/connection.rb:39:in `receive_data'
eventmachine (1.0.3) lib/eventmachine.rb:187:in `run'
thin (1.6.2) lib/thin/backends/base.rb:73:in `start'
thin (1.6.2) lib/thin/server.rb:162:in `start'
rack (1.6.11) lib/rack/handler/thin.rb:19:in `run'
rack (1.6.11) lib/rack/server.rb:287:in `start'
railties (4.2.11.1) lib/rails/commands/server.rb:80:in `start'
railties (4.2.11.1) lib/rails/commands/commands_tasks.rb:80:in `block in server'
railties (4.2.11.1) lib/rails/commands/commands_tasks.rb:75:in `server'
railties (4.2.11.1) lib/rails/commands/commands_tasks.rb:39:in `run_command!'
railties (4.2.11.1) lib/rails/commands.rb:17:in `<top (required)>'
bin/rails:9:in `<top (required)>'
spring (1.7.1) lib/spring/client/rails.rb:28:in `call'
spring (1.7.1) lib/spring/client/command.rb:7:in `call'
spring (1.7.1) lib/spring/client.rb:30:in `run'
spring (1.7.1) bin/spring:49:in `<top (required)>'
spring (1.7.1) lib/spring/binstub.rb:11:in `<top (required)>'
bin/spring:13:in `<top (required)>'
bin/rails:3:in `<main>'
Подготовка
- gem 'rails', '4.1.14`
+ gem 'rails', '4.2.11.1'
- gem 'i18n', '~> 0.6.9'
+ gem 'i18n', '~> 0.7.0'
$ bundle update --conservative rails railties activesupport actionview activemodel activerecord actionpack rack i18n