質問編集履歴
2
sceha.rb追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -83,3 +83,65 @@
|
|
83
83
|
```
|
84
84
|
|
85
85
|
上記、telをrowに入れインポートした際のエラーです。
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
```
|
94
|
+
|
95
|
+
create_table "customers", force: :cascade do |t|
|
96
|
+
|
97
|
+
t.string "company"
|
98
|
+
|
99
|
+
t.string "store"
|
100
|
+
|
101
|
+
t.string "url_2"
|
102
|
+
|
103
|
+
t.string "extraction_date"
|
104
|
+
|
105
|
+
end
|
106
|
+
|
107
|
+
```
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
create_table "calls", force: :cascade do |t|
|
114
|
+
|
115
|
+
t.string "statu"
|
116
|
+
|
117
|
+
t.datetime "time"
|
118
|
+
|
119
|
+
t.string "comment"
|
120
|
+
|
121
|
+
t.integer "customer_id"
|
122
|
+
|
123
|
+
t.datetime "created_at", null: false
|
124
|
+
|
125
|
+
t.datetime "updated_at", null: false
|
126
|
+
|
127
|
+
t.integer "admin_id"
|
128
|
+
|
129
|
+
t.integer "crm_id"
|
130
|
+
|
131
|
+
t.integer "customer_tel_id"
|
132
|
+
|
133
|
+
t.integer "user_id"
|
134
|
+
|
135
|
+
t.index ["admin_id"], name: "index_calls_on_admin_id"
|
136
|
+
|
137
|
+
t.index ["crm_id"], name: "index_calls_on_crm_id"
|
138
|
+
|
139
|
+
t.index ["customer_id"], name: "index_calls_on_customer_id"
|
140
|
+
|
141
|
+
t.index ["customer_tel_id"], name: "index_calls_on_customer_tel_id"
|
142
|
+
|
143
|
+
t.index ["user_id"], name: "index_calls_on_user_id"
|
144
|
+
|
145
|
+
end
|
146
|
+
|
147
|
+
```
|
1
エラー文
test
CHANGED
File without changes
|
test
CHANGED
@@ -55,3 +55,31 @@
|
|
55
55
|
```
|
56
56
|
|
57
57
|
上記のようにプログラムしております。既にcallにcustomer_idは認識されておりますが、customer_telを認識させるにはどうすれば良いでしょうか?よろしくお願い致します。
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
```
|
64
|
+
|
65
|
+
Completed 500 Internal Server Error in 95ms (ActiveRecord: 41.9ms)
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
ActiveModel::UnknownAttributeError (unknown attribute 'tel' for Call.):
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
app/models/call.rb:29:in `block in call_import'
|
78
|
+
|
79
|
+
app/models/call.rb:26:in `call_import'
|
80
|
+
|
81
|
+
app/controllers/customers_controller.rb:149:in `call_import'
|
82
|
+
|
83
|
+
```
|
84
|
+
|
85
|
+
上記、telをrowに入れインポートした際のエラーです。
|