質問編集履歴

2

誰か回答してくれ・・・・( ;∀;)

2020/06/05 05:15

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
  config.cache_classes = true
38
38
 
39
- config.eager_load = false
39
+ config.eager_load = true
40
40
 
41
41
  config.consider_all_requests_local = false
42
42
 
@@ -58,8 +58,6 @@
58
58
 
59
59
  config.active_support.deprecation = :notify
60
60
 
61
- config.active_record.dump_schema_after_migration = false
62
-
63
61
  if ENV["RAILS_LOG_TO_STDOUT"].present?
64
62
 
65
63
  logger = ActiveSupport::Logger.new(STDOUT)
@@ -69,6 +67,10 @@
69
67
  config.logger = ActiveSupport::TaggedLogging.new(logger)
70
68
 
71
69
  end
70
+
71
+ config.active_record.dump_schema_after_migration = false
72
+
73
+ config.log_formatter = ::Logger::Formatter.new
72
74
 
73
75
  end
74
76
 

1

application.rbの追記

2020/06/05 05:15

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -108,6 +108,34 @@
108
108
 
109
109
  ```
110
110
 
111
+ app/config/application.rb
112
+
113
+ ```
114
+
115
+ require_relative 'boot'
116
+
117
+ require 'rails/all'
118
+
119
+ Bundler.require(*Rails.groups)
120
+
121
+ module Butube
122
+
123
+ class Application < Rails::Application
124
+
125
+ config.load_defaults 6.0
126
+
127
+ if Rails.env.deveropment?
128
+
129
+ config.web_console.automount = true
130
+
131
+ end
132
+
133
+ end
134
+
135
+ end
136
+
137
+ ```
138
+
111
139
 
112
140
 
113
141
  ### 試したこと