質問編集履歴

1

Config>database\.ymlを追記

2016/02/26 17:24

投稿

Tomoaki_Fukuda
Tomoaki_Fukuda

スコア75

test CHANGED
File without changes
test CHANGED
@@ -13,3 +13,115 @@
13
13
 
14
14
 
15
15
  /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)
16
+
17
+
18
+
19
+
20
+
21
+ ###Config>database.yml
22
+
23
+ ```ruby
24
+
25
+ # SQLite version 3.x
26
+
27
+ # gem install sqlite3
28
+
29
+ #
30
+
31
+ # Ensure the SQLite 3 gem is defined in your Gemfile
32
+
33
+ # gem 'sqlite3'
34
+
35
+ #
36
+
37
+ # default: &default
38
+
39
+ # adapter: sqlite3
40
+
41
+ # pool: 5
42
+
43
+ # timeout: 5000
44
+
45
+ #
46
+
47
+ # development:
48
+
49
+ # <<: *default
50
+
51
+ # database: db/development.sqlite3
52
+
53
+ #
54
+
55
+ # Warning: The database defined as "test" will be erased and
56
+
57
+ # re-generated from your development database when you run "rake".
58
+
59
+ # Do not set this db to the same as development or production.
60
+
61
+ # test:
62
+
63
+ # <<: *default
64
+
65
+ # database: db/test.sqlite3
66
+
67
+ #
68
+
69
+ # production:
70
+
71
+ # <<: *default
72
+
73
+ # database: db/production.sqlite3
74
+
75
+
76
+
77
+
78
+
79
+ default: &default
80
+
81
+ adapter: mysql2
82
+
83
+ encoding: utf8
84
+
85
+ reconnect: false
86
+
87
+ pool: 5
88
+
89
+ socket: /tmp/mysql.sock
90
+
91
+
92
+
93
+ development:
94
+
95
+ <<: *default
96
+
97
+ database: joinup_development
98
+
99
+ username: testuser
100
+
101
+ password: +e5+pa55w0rD
102
+
103
+
104
+
105
+ test:
106
+
107
+ <<: *default
108
+
109
+ database: joinup_test
110
+
111
+ username: testuser
112
+
113
+ password: +e5+pa55w0rD
114
+
115
+
116
+
117
+ production:
118
+
119
+ <<: *default
120
+
121
+ database: joinup_production
122
+
123
+ username: testuser
124
+
125
+ password: +e5+pa55w0rD
126
+
127
+ ```