この度本番環境に載せるに当たってDBをsqliteからmysqlに移行したいのですが下記のようなエラーが出てしまい先に進めません。どなたかお知恵をお貸しください!
rb
1bundle exec rails db:create 2rails aborted! 3Psych::SyntaxError: (<unknown>): could not find expected ':' while scanning a simple key at line 2 column 1
rb
1# SQLite. Versions 3.8.0 and up are supported. 2# gem install mysql2 3# 4# Ensure the SQLite 3 gem is defined in your Gemfile 5# gem 'mysql2' 6# 7default: &default 8 adapter: mysql2 9 pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> 10 timeout: 5000 11 host: localhost 12 13development: 14 <<: *default 15 database: my_dictionary 16 17# Warning: The database defined as "test" will be erased and 18# re-generated from your development database when you run "rake". 19# Do not set this db to the same as development or production. 20test: 21 <<: *default 22 database: my_dictionary 23 24production: 25 <<: *default 26 database: my_dictionary 27
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/01/16 00:56
2020/01/16 01:07