teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

文法の修正

2021/01/22 12:27

投稿

wrx_sti
wrx_sti

スコア1

title CHANGED
File without changes
body CHANGED
@@ -14,7 +14,36 @@
14
14
 
15
15
  Mysql2::Error: BLOB, TEXT, GEOMETRY or JSON column 'introduction' can't have a default value: CREATE TABLE `users` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `name` varchar(255) NOT NULL, `style` int DEFAULT 0 NOT NULL, `birthday` varchar(255) NOT NULL, `sex` int DEFAULT 0 NOT NULL, `profile_image_id` int DEFAULT 0 NOT NULL, `introduction` text DEFAULT '' NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL)
16
16
  ```
17
-
17
+ ```
18
+ [ec2-user@ip-172-31-3-254 pf_snooooow]$ rails db:migrate:status
19
+ rails aborted!
20
+ LoadError: Could not load the 'listen' gem. Add `gem 'listen'` to the development group of your Gemfile
21
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
22
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
23
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:89:in `register'
24
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
25
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:44:in `require'
26
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `block in require'
27
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:257:in `load_dependency'
28
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `require'
29
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/evented_file_update_checker.rb:61:in `block in initialize'
30
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/core_ext/kernel/reporting.rb:15:in `block in silence_warnings'
31
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/core_ext/kernel/reporting.rb:28:in `with_warnings'
32
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/core_ext/kernel/reporting.rb:15:in `silence_warnings'
33
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/evented_file_update_checker.rb:59:in `initialize'
34
+ (省略)
35
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
36
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
37
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
38
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
39
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
40
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `block in require'
41
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:257:in `load_dependency'
42
+ /home/ec2-user/pf_snooooow/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.4.4/lib/active_support/dependencies.rb:291:in `require'
43
+ bin/rails:9:in `<main>'
44
+ Tasks: TOP => db:migrate:status => db:load_config => environment
45
+ (See full trace by running task with --trace)
46
+ ```
18
47
  ### 該当のソースコード
19
48
 
20
49
  ```ここに言語名を入力
@@ -28,6 +57,9 @@
28
57
  https://teratail.com/questions/301797 こちらの記事と全く同じ状態ですが、解決方法がわかりませんでした。
29
58
 
30
59
 
60
+
31
61
  ### 補足情報(FW/ツールのバージョンなど)
32
-
33
- ここにより詳細な情報記載してください
62
+ リセット行ったときのコマンドです
63
+ ```
64
+ RAILS_ENV=production DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bundle exec rails db:drop
65
+ ```

2

初心者アイコン

2021/01/22 12:27

投稿

wrx_sti
wrx_sti

スコア1

title CHANGED
File without changes
body CHANGED
@@ -27,6 +27,7 @@
27
27
 
28
28
  https://teratail.com/questions/301797 こちらの記事と全く同じ状態ですが、解決方法がわかりませんでした。
29
29
 
30
+
30
31
  ### 補足情報(FW/ツールのバージョンなど)
31
32
 
32
33
  ここにより詳細な情報を記載してください。

1

文法の修正

2021/01/21 17:33

投稿

wrx_sti
wrx_sti

スコア1

title CHANGED
File without changes
body CHANGED
@@ -25,6 +25,8 @@
25
25
 
26
26
  ローカル環境のintroductionカラムのデフォルト値確認
27
27
 
28
+ https://teratail.com/questions/301797 こちらの記事と全く同じ状態ですが、解決方法がわかりませんでした。
29
+
28
30
  ### 補足情報(FW/ツールのバージョンなど)
29
31
 
30
32
  ここにより詳細な情報を記載してください。