回答編集履歴

1

追記

2017/08/21 11:54

投稿

chelsy7110
chelsy7110

スコア596

test CHANGED
@@ -1 +1,73 @@
1
- ```db/development.db```となっているところを```db/development.sqlite3```と変えてみてください。
1
+ では```db/development.db```となっているところを```db/development.sqlite3```と変えてみてください。
2
+
3
+
4
+
5
+ ####追記
6
+
7
+ cloud9でrails new testと実行して自動で出来たdatabase.ymlです。
8
+
9
+
10
+
11
+ ```ruby
12
+
13
+ # SQLite version 3.x
14
+
15
+ # gem install sqlite3
16
+
17
+ #
18
+
19
+ # Ensure the SQLite 3 gem is defined in your Gemfile
20
+
21
+ # gem 'sqlite3'
22
+
23
+ #
24
+
25
+ default: &default
26
+
27
+ adapter: sqlite3
28
+
29
+ pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
30
+
31
+ timeout: 5000
32
+
33
+
34
+
35
+ development:
36
+
37
+ <<: *default
38
+
39
+ database: db/development.sqlite3
40
+
41
+
42
+
43
+ # Warning: The database defined as "test" will be erased and
44
+
45
+ # re-generated from your development database when you run "rake".
46
+
47
+ # Do not set this db to the same as development or production.
48
+
49
+ test:
50
+
51
+ <<: *default
52
+
53
+ database: db/test.sqlite3
54
+
55
+
56
+
57
+ production:
58
+
59
+ <<: *default
60
+
61
+ database: db/production.sqlite3
62
+
63
+
64
+
65
+ ```
66
+
67
+
68
+
69
+ こんな感じで中身がはいってないですか?
70
+
71
+ 入ってない場合はこのコードをコピーしてdatabase.ymlの中身を入れ替えてやってみてください。
72
+
73
+ 自分はこれでrake db:migrate:resetが動きました。