-
Notifications
You must be signed in to change notification settings - Fork 410
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
`require': Could not load the 'mysql' Active Record adapter. #118
Comments
use mysql2:// in the URL to fix the issue
…On Mon, Oct 9, 2023 at 12:04 PM PIKACHUIM ***@***.***> wrote:
I want use mysql, however:
DATABASE_URL = ***@***.***:3306/docuseals
`require': Could not load the 'mysql' Active Record adapter. Ensure that
the adapter is spelled correctly in config/database.yml and that you've
added the necessary adapter gem to your Gemfile. (LoadError)
Thank you!
—
Reply to this email directly, view it on GitHub
<#118>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI7GL6D66S2AP3LNBLGGTLX6O42NAVCNFSM6AAAAAA5YO2V56VHI2DSMVQWIX3LMV43ASLTON2WKOZRHEZTENRQHEZDSMQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thank you for your timely and patient answer. I tried to modify it to mysql2, but there was an error as follows: Mysql2::Error: BLOB/TEXT column 'uuid' used in key specification wit hout a key length (ActiveRecord::StatementInvalid) |
Full log:
|
It has been fixed in the latest version
…On Mon, Oct 9, 2023 at 12:19 PM PIKACHUIM ***@***.***> wrote:
Full log:
/usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in `_query': An error has occurred, all later migrations canceled: (StandardError)
Mysql2::Error: BLOB/TEXT column 'uuid' used in key specification without a key length
from /usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in `block in query'
from /usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in `handle_interrupt'
from /usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in `query'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:638:in `block (2 levels) in raw_execute'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:637:in `block in raw_execute'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:743:in `log'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:636:in `raw_execute'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/mysql/database_statements.rb:96:in `raw_execute'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/mysql/database_statements.rb:47:in `execute'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:369:in `add_index'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:932:in `block in method_missing'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `block in say_with_time'
from /usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `say_with_time'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:921:in `method_missing'
from /app/db/migrate/20230803200825_add_uuid_to_users.rb:10:in `up'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:873:in `public_send'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:873:in `exec_migration'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
from /usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:853:in `block in migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:852:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1046:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1413:in `ddl_transaction'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `each'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `migrate_without_lock'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `block in migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1428:in `with_advisory_lock'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1117:in `up'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1092:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
from /app/config/initializers/migrate.rb:4:in `block in <main>'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:445:in `instance_exec'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:445:in `block in make_lambda'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:687:in `block (2 levels) in default_terminator'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:686:in `catch'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:686:in `block in default_terminator'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:200:in `block in halting'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:595:in `block in invoke_before'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:595:in `each'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:595:in `invoke_before'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:106:in `run_callbacks'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/reloader.rb:88:in `prepare!'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/application/finisher.rb:68:in `block in <module:Finisher>'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:32:in `instance_exec'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:32:in `run'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:61:in `block in run_initializers'
from /usr/local/lib/ruby/3.2.0/tsort.rb:228:in `block in tsort_each'
from /usr/local/lib/ruby/3.2.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/lib/ruby/3.2.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/3.2.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/local/lib/ruby/3.2.0/tsort.rb:347:in `each'
from /usr/local/lib/ruby/3.2.0/tsort.rb:347:in `call'
from /usr/local/lib/ruby/3.2.0/tsort.rb:347:in `each_strongly_connected_component'
from /usr/local/lib/ruby/3.2.0/tsort.rb:226:in `tsort_each'
from /usr/local/lib/ruby/3.2.0/tsort.rb:205:in `tsort_each'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:60:in `run_initializers'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/application.rb:372:in `initialize!'
from /app/config/environment.rb:7:in `<main>'
from config.ru:3:in `require_relative'
from config.ru:3:in `block in <main>'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:116:in `eval'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:116:in `new_from_string'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:105:in `load_file'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:66:in `parse_file'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:349:in `build_app_and_options_from_config'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:249:in `app'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:422:in `wrapped_app'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:312:in `block in start'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:379:in `handle_profiling'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:311:in `start'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands/server/server_command.rb:38:in `start'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands/server/server_command.rb:143:in `block in perform'
from <internal:kernel>:90:in `tap'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands/server/server_command.rb:134:in `perform'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/command/base.rb:87:in `perform'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/command.rb:48:in `invoke'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands.rb:18:in `<main>'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /usr/local/bundle/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /app/bin/rails:4:in `<main>'
/usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in `_query': Mysql2::Error: BLOB/TEXT column 'uuid' used in key specification without a key length (ActiveRecord::StatementInvalid)
from /usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in `block in query'
from /usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in `handle_interrupt'
from /usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in `query'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:638:in `block (2 levels) in raw_execute'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:637:in `block in raw_execute'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:743:in `log'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:636:in `raw_execute'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/mysql/database_statements.rb:96:in `raw_execute'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/mysql/database_statements.rb:47:in `execute'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:369:in `add_index'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:932:in `block in method_missing'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `block in say_with_time'
from /usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `say_with_time'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:921:in `method_missing'
from /app/db/migrate/20230803200825_add_uuid_to_users.rb:10:in `up'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:873:in `public_send'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:873:in `exec_migration'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
from /usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:853:in `block in migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:852:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1046:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1413:in `ddl_transaction'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `each'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `migrate_without_lock'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `block in migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1428:in `with_advisory_lock'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1117:in `up'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1092:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
from /app/config/initializers/migrate.rb:4:in `block in <main>'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:445:in `instance_exec'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:445:in `block in make_lambda'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:687:in `block (2 levels) in default_terminator'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:686:in `catch'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:686:in `block in default_terminator'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:200:in `block in halting'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:595:in `block in invoke_before'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:595:in `each'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:595:in `invoke_before'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:106:in `run_callbacks'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/reloader.rb:88:in `prepare!'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/application/finisher.rb:68:in `block in <module:Finisher>'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:32:in `instance_exec'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:32:in `run'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:61:in `block in run_initializers'
from /usr/local/lib/ruby/3.2.0/tsort.rb:228:in `block in tsort_each'
from /usr/local/lib/ruby/3.2.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/lib/ruby/3.2.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/3.2.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/local/lib/ruby/3.2.0/tsort.rb:347:in `each'
from /usr/local/lib/ruby/3.2.0/tsort.rb:347:in `call'
from /usr/local/lib/ruby/3.2.0/tsort.rb:347:in `each_strongly_connected_component'
from /usr/local/lib/ruby/3.2.0/tsort.rb:226:in `tsort_each'
from /usr/local/lib/ruby/3.2.0/tsort.rb:205:in `tsort_each'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:60:in `run_initializers'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/application.rb:372:in `initialize!'
from /app/config/environment.rb:7:in `<main>'
from config.ru:3:in `require_relative'
from config.ru:3:in `block in <main>'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:116:in `eval'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:116:in `new_from_string'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:105:in `load_file'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:66:in `parse_file'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:349:in `build_app_and_options_from_config'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:249:in `app'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:422:in `wrapped_app'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:312:in `block in start'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:379:in `handle_profiling'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:311:in `start'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands/server/server_command.rb:38:in `start'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands/server/server_command.rb:143:in `block in perform'
from <internal:kernel>:90:in `tap'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands/server/server_command.rb:134:in `perform'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/command/base.rb:87:in `perform'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/command.rb:48:in `invoke'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands.rb:18:in `<main>'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /usr/local/bundle/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /app/bin/rails:4:in `<main>'
/usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in `_query': BLOB/TEXT column 'uuid' used in key specification without a key length (Mysql2::Error)
from /usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:151:in `block in query'
from /usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in `handle_interrupt'
from /usr/local/bundle/gems/mysql2-0.5.5/lib/mysql2/client.rb:150:in `query'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:638:in `block (2 levels) in raw_execute'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:637:in `block in raw_execute'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:743:in `log'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:636:in `raw_execute'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/mysql/database_statements.rb:96:in `raw_execute'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/mysql/database_statements.rb:47:in `execute'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:369:in `add_index'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:932:in `block in method_missing'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `block in say_with_time'
from /usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `say_with_time'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:921:in `method_missing'
from /app/db/migrate/20230803200825_add_uuid_to_users.rb:10:in `up'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:873:in `public_send'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:873:in `exec_migration'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
from /usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:853:in `block in migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:852:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1046:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1413:in `ddl_transaction'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `each'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `migrate_without_lock'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `block in migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1428:in `with_advisory_lock'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1117:in `up'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/migration.rb:1092:in `migrate'
from /usr/local/bundle/gems/activerecord-7.0.7/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
from /app/config/initializers/migrate.rb:4:in `block in <main>'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:445:in `instance_exec'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:445:in `block in make_lambda'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:687:in `block (2 levels) in default_terminator'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:686:in `catch'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:686:in `block in default_terminator'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:200:in `block in halting'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:595:in `block in invoke_before'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:595:in `each'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:595:in `invoke_before'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/callbacks.rb:106:in `run_callbacks'
from /usr/local/bundle/gems/activesupport-7.0.7/lib/active_support/reloader.rb:88:in `prepare!'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/application/finisher.rb:68:in `block in <module:Finisher>'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:32:in `instance_exec'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:32:in `run'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:61:in `block in run_initializers'
from /usr/local/lib/ruby/3.2.0/tsort.rb:228:in `block in tsort_each'
from /usr/local/lib/ruby/3.2.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/lib/ruby/3.2.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/3.2.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /usr/local/lib/ruby/3.2.0/tsort.rb:347:in `each'
from /usr/local/lib/ruby/3.2.0/tsort.rb:347:in `call'
from /usr/local/lib/ruby/3.2.0/tsort.rb:347:in `each_strongly_connected_component'
from /usr/local/lib/ruby/3.2.0/tsort.rb:226:in `tsort_each'
from /usr/local/lib/ruby/3.2.0/tsort.rb:205:in `tsort_each'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/initializable.rb:60:in `run_initializers'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/application.rb:372:in `initialize!'
from /app/config/environment.rb:7:in `<main>'
from config.ru:3:in `require_relative'
from config.ru:3:in `block in <main>'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:116:in `eval'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:116:in `new_from_string'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:105:in `load_file'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/builder.rb:66:in `parse_file'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:349:in `build_app_and_options_from_config'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:249:in `app'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:422:in `wrapped_app'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:312:in `block in start'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:379:in `handle_profiling'
from /usr/local/bundle/gems/rack-2.2.8/lib/rack/server.rb:311:in `start'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands/server/server_command.rb:38:in `start'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands/server/server_command.rb:143:in `block in perform'
from <internal:kernel>:90:in `tap'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands/server/server_command.rb:134:in `perform'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor/command.rb:27:in `run'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/bundle/gems/thor-1.2.2/lib/thor.rb:392:in `dispatch'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/command/base.rb:87:in `perform'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/command.rb:48:in `invoke'
from /usr/local/bundle/gems/railties-7.0.7/lib/rails/commands.rb:18:in `<main>'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /usr/local/bundle/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from /app/bin/rails:4:in `<main>'
—
Reply to this email directly, view it on GitHub
<#118 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI7GL5NGKHDHN2DEN32ZYTX6O6SFAVCNFSM6AAAAAA5YO2V56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJSGYZDOMJTGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thank you for your kind support! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want use mysql, however:
DATABASE_URL = mysql://username:password@172.17.0.1:3306/docuseals
`require': Could not load the 'mysql' Active Record adapter. Ensure that the adapter is spelled correctly in config/database.yml and that you've added the necessary adapter gem to your Gemfile. (LoadError)
Thank you!
The text was updated successfully, but these errors were encountered: