質問編集履歴
2
callのscema.rb
title
CHANGED
File without changes
|
body
CHANGED
@@ -33,16 +33,21 @@
|
|
33
33
|
|
34
34
|
|
35
35
|
```
|
36
|
-
create_table "
|
36
|
+
create_table "calls", force: :cascade do |t|
|
37
|
-
t.string "company"
|
38
|
-
t.string "tel"
|
39
|
-
t.string "postnumber"
|
40
|
-
t.string "address"
|
41
|
-
t.string "caption"
|
42
|
-
t.string "remarks"
|
43
|
-
t.string "
|
37
|
+
t.string "statu"
|
38
|
+
t.datetime "time"
|
39
|
+
t.string "comment"
|
40
|
+
t.integer "customer_id"
|
44
41
|
t.datetime "created_at", null: false
|
45
42
|
t.datetime "updated_at", null: false
|
46
|
-
t.
|
43
|
+
t.integer "admin_id"
|
44
|
+
t.integer "crm_id"
|
45
|
+
t.integer "customer_tel_id"
|
46
|
+
t.integer "user_id"
|
47
|
+
t.index ["admin_id"], name: "index_calls_on_admin_id"
|
48
|
+
t.index ["crm_id"], name: "index_calls_on_crm_id"
|
49
|
+
t.index ["customer_id"], name: "index_calls_on_customer_id"
|
50
|
+
t.index ["customer_tel_id"], name: "index_calls_on_customer_tel_id"
|
51
|
+
t.index ["user_id"], name: "index_calls_on_user_id"
|
47
52
|
end
|
48
53
|
```
|
1
schema.rbの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -29,4 +29,20 @@
|
|
29
29
|
end
|
30
30
|
```
|
31
31
|
|
32
|
-
上記でtelがattributeされていない理由がわからずに困っております。ご教示よろしくお願い致します。
|
32
|
+
上記でtelがattributeされていない理由がわからずに困っております。ご教示よろしくお願い致します。
|
33
|
+
|
34
|
+
|
35
|
+
```
|
36
|
+
create_table "customers", force: :cascade do |t|
|
37
|
+
t.string "company"
|
38
|
+
t.string "tel"
|
39
|
+
t.string "postnumber"
|
40
|
+
t.string "address"
|
41
|
+
t.string "caption"
|
42
|
+
t.string "remarks"
|
43
|
+
t.string "status"
|
44
|
+
t.datetime "created_at", null: false
|
45
|
+
t.datetime "updated_at", null: false
|
46
|
+
t.string "extraction_date"
|
47
|
+
end
|
48
|
+
```
|