rails db: migrate приносит ошибку как в терминале, так и в проводнике, пожалуйста, посоветуйте ??? также я не могу установить пакет 2.1.4 - PullRequest
0 голосов
/ 05 марта 2020

kash@TheKash: ~ / rails / property-finder $ rails db: migrate Предупреждение: работающая версия Bundler (2.1.2) старше, чем версия, создавшая файл блокировки (2.1.4). Мы предлагаем вам обновить до версии, которая создала файл блокировки, запустив gem install bundler:2.1.4. /home/kash/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actionpack-6.0.2.1/lib/action_dispatch/middleware/stack.rb:37: warning: использовать последний аргумент как параметры ключевых слов не рекомендуется; возможно ** следует добавить к вызову /home/kash/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/actionpack-6.0.2.1/lib/action_dispatch/middleware/static .rb: 110: предупреждение: вызываемый метод initialize' is defined here /home/kash/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/type.rb:27: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/kash/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/type/adapter_specific_registry.rb:9: warning: The called method add_modifier 'определен здесь /home/kash/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activemodel-6.0.2.1 /lib/active_model/type/integer.rb:13: предупреждение: использование последнего аргумента в качестве параметров ключевого слова не рекомендуется; возможно ** следует добавить к вызову /home/kash/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activemodel-6.0.2.1/lib/active_model/type/value.rb : 8: предупреждение: вызываемый метод initialize' is defined here /home/kash/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/oid/specialized_string.rb:12: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /home/kash/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activemodel-6.0.2.1/lib/active_model/type/value.rb:8: warning: The called method initialize 'определен здесь rails aborted! Ошибка синтаксиса: /home/kash/rails/property-finder/db/migrate/20200305140545_devise_create_accounts.rb:14: синтаксическая ошибка, неожиданный литерал символа, ожидание end' t.string :reset_password_token ^ /home/kash/rails/property-finder/bin/rails:9:in '/ home / kash / rails / property-finder / bin / spring: 15: в <top (required)>' bin/rails:3:in load 'bin / rails: 3: в `' Задачи: TOP => db: migrate (полная трассировка выполняется при запуске задачи с --trace)

в Explorer

NameError неинициализированная константа DeviseCreateAccounts Вы имели в виду? DeviseController Извлеченный источник (около строки # 282): 280 281 282 283 284 285

  names.inject(Object) do |constant, name|
    if constant == Object
      constant.const_get(name)
    else
      candidate = constant.const_get(name)
      next candidate if constant.const_defined?(name, false)

Rails. root: / home / kash / rails / property-finder

Application Trace | Framework Trace | Полная трассировка activesupport (6.0.2.1) lib / active_support / inflector / method.rb: 282: в блоке const_get' activesupport (6.0.2.1) lib/active_support/inflector/methods.rb:282:in в constantize 'activesupport (6.0.2.1) lib / active_support / inflector / method.rb: 280: в each' activesupport (6.0.2.1) lib/active_support/inflector/methods.rb:280:in inject 'activesupport (6.0.2.1) lib / active_support / inflector / method.rb: 280: в constantize' activesupport (6.0.2.1) lib/active_support/core_ext/string/inflections.rb:68:in constantize' activerecord (6.0.2.1) lib / active_record /igration.rb: 1011: в load_migration' activerecord (6.0.2.1) lib/active_record/migration.rb:1006:in миграции 'activerecord ( 6.0.2.1) lib / active_record /igration.rb: 1001: в disable_ddl_transaction' activerecord (6.0.2.1) lib/active_record/migration.rb:1369:in use_transaction? ' activerecord (6.0.2.1) lib / active_record /igration.rb: 1316: в rescue in execute_migration_in_transaction' activerecord (6.0.2.1) lib/active_record/migration.rb:1304:in execute_migration_in_transaction 'activerecord (6.0.2.1) lib / active_record /igration.rb: 1282: в block in migrate_without_lock' activerecord (6.0.2.1) lib/active_record/migration.rb:1281:in каждый' activerecord (6.0.2.1) lib / active_record /igration.rb: 1281: в migrate_without_lock' activerecord (6.0.2.1) lib/active_record/migration.rb:1229:in блоке в migrate 'activerecord (6.0.2.1) lib / active_record /igration.rb: 1382: в with_advisory_lock' activerecord (6.0.2.1) lib/active_record/migration.rb:1229:in migrate' activerecord (6.0.2.1) lib / active_record / migration.rb: 1061: в up' activerecord (6.0.2.1) lib/active_record/migration.rb:1036:in migrate 'activerecord (6.0.2.1) lib / active_record / tasks / database_tasks.rb: 238: в migrate' activerecord (6.0.2.1) lib/active_record/migration.rb:135:in блоке в' activesupport (6.0.2.1) lib / active_support / actionable_error.rb : 28: в "отправке"

...