質問編集履歴
1
Config>database\.ymlを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,4 +5,60 @@
|
|
5
5
|
|
6
6
|
###発生している問題・エラーメッセージ
|
7
7
|
|
8
|
-
/Users/TOMOAKI/.rbenv/versions/2.3.0/lib/ruby/2.3.0/psych.rb:377:in `parse': (<unknown>): mapping values are not allowed in this context at line 14 column 22 (Psych::SyntaxError)
|
8
|
+
/Users/TOMOAKI/.rbenv/versions/2.3.0/lib/ruby/2.3.0/psych.rb:377:in `parse': (<unknown>): mapping values are not allowed in this context at line 14 column 22 (Psych::SyntaxError)
|
9
|
+
|
10
|
+
|
11
|
+
###Config>database.yml
|
12
|
+
```ruby
|
13
|
+
# SQLite version 3.x
|
14
|
+
# gem install sqlite3
|
15
|
+
#
|
16
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
17
|
+
# gem 'sqlite3'
|
18
|
+
#
|
19
|
+
# default: &default
|
20
|
+
# adapter: sqlite3
|
21
|
+
# pool: 5
|
22
|
+
# timeout: 5000
|
23
|
+
#
|
24
|
+
# development:
|
25
|
+
# <<: *default
|
26
|
+
# database: db/development.sqlite3
|
27
|
+
#
|
28
|
+
# Warning: The database defined as "test" will be erased and
|
29
|
+
# re-generated from your development database when you run "rake".
|
30
|
+
# Do not set this db to the same as development or production.
|
31
|
+
# test:
|
32
|
+
# <<: *default
|
33
|
+
# database: db/test.sqlite3
|
34
|
+
#
|
35
|
+
# production:
|
36
|
+
# <<: *default
|
37
|
+
# database: db/production.sqlite3
|
38
|
+
|
39
|
+
|
40
|
+
default: &default
|
41
|
+
adapter: mysql2
|
42
|
+
encoding: utf8
|
43
|
+
reconnect: false
|
44
|
+
pool: 5
|
45
|
+
socket: /tmp/mysql.sock
|
46
|
+
|
47
|
+
development:
|
48
|
+
<<: *default
|
49
|
+
database: joinup_development
|
50
|
+
username: testuser
|
51
|
+
password: +e5+pa55w0rD
|
52
|
+
|
53
|
+
test:
|
54
|
+
<<: *default
|
55
|
+
database: joinup_test
|
56
|
+
username: testuser
|
57
|
+
password: +e5+pa55w0rD
|
58
|
+
|
59
|
+
production:
|
60
|
+
<<: *default
|
61
|
+
database: joinup_production
|
62
|
+
username: testuser
|
63
|
+
password: +e5+pa55w0rD
|
64
|
+
```
|