質問編集履歴
1
追加情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -145,3 +145,71 @@
|
|
145
145
|
remote: ! https://devcenter.heroku.com/articles/sqlite3
|
146
146
|
|
147
147
|
```
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
##追加情報
|
152
|
+
|
153
|
+
database.ymlのproductionの部分を下記のように変更しました。
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
```database.yml
|
158
|
+
|
159
|
+
# SQLite. Versions 3.8.0 and up are supported.
|
160
|
+
|
161
|
+
# gem install sqlite3
|
162
|
+
|
163
|
+
#
|
164
|
+
|
165
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
166
|
+
|
167
|
+
# gem 'sqlite3'
|
168
|
+
|
169
|
+
#
|
170
|
+
|
171
|
+
default: &default
|
172
|
+
|
173
|
+
adapter: sqlite3
|
174
|
+
|
175
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
176
|
+
|
177
|
+
timeout: 5000
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
development:
|
182
|
+
|
183
|
+
<<: *default
|
184
|
+
|
185
|
+
database: db/development.sqlite3
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
# Warning: The database defined as "test" will be erased and
|
190
|
+
|
191
|
+
# re-generated from your development database when you run "rake".
|
192
|
+
|
193
|
+
# Do not set this db to the same as development or production.
|
194
|
+
|
195
|
+
test:
|
196
|
+
|
197
|
+
<<: *default
|
198
|
+
|
199
|
+
database: db/test.sqlite3
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
production:
|
204
|
+
|
205
|
+
<<: *default
|
206
|
+
|
207
|
+
adapter: postgresql
|
208
|
+
|
209
|
+
encoding: unicode
|
210
|
+
|
211
|
+
pool: 5
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
```
|