質問編集履歴

1

migration 実行時のログを追記

2017/09/03 03:44

投稿

gongon10600
gongon10600

スコア8

test CHANGED
File without changes
test CHANGED
@@ -72,6 +72,42 @@
72
72
 
73
73
 
74
74
 
75
+ ###追記です!! migration 実行時のログです
76
+
77
+ ```
78
+
79
+ == 20170826062313 CreatePeople: migrating =====================================
80
+
81
+ -- create_table(:people)
82
+
83
+ rake aborted!
84
+
85
+ StandardError: An error has occurred, this and all later migrations canceled:
86
+
87
+
88
+
89
+ SQLite3::SQLException: table "people" already exists: CREATE TABLE "people" ("id " INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" text, "age" integer, "mail" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
90
+
91
+ /home/vagrant/rails_lessons/RailsApp/db/migrate/20170826062313_create_people.rb: 3:in `change'
92
+
93
+ ActiveRecord::StatementInvalid: SQLite3::SQLException: table "people" already ex ists: CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "n ame" text, "age" integer, "mail" text, "created_at" datetime NOT NULL, "updated_ at" datetime NOT NULL)
94
+
95
+ /home/vagrant/rails_lessons/RailsApp/db/migrate/20170826062313_create_people.rb: 3:in `change'
96
+
97
+ SQLite3::SQLException: table "people" already exists
98
+
99
+ /home/vagrant/rails_lessons/RailsApp/db/migrate/20170826062313_create_people.rb: 3:in `change'
100
+
101
+ Tasks: TOP => db:migrate
102
+
103
+ (See full trace by running task with --trace)
104
+
105
+ ```
106
+
107
+
108
+
109
+
110
+
75
111
  ###補足情報(言語/FW/ツール等のバージョンなど)
76
112
 
77
113
  centos からvagrant を起動させて動作させています。