質問編集履歴

2

callのscema.rb

2020/05/16 13:10

投稿

KOO_
KOO_

スコア58

test CHANGED
File without changes
test CHANGED
@@ -68,27 +68,37 @@
68
68
 
69
69
  ```
70
70
 
71
- create_table "customers", force: :cascade do |t|
71
+ create_table "calls", force: :cascade do |t|
72
72
 
73
- t.string "company"
73
+ t.string "statu"
74
74
 
75
- t.string "tel"
75
+ t.datetime "time"
76
76
 
77
- t.string "postnumber"
77
+ t.string "comment"
78
78
 
79
- t.string "address"
80
-
81
- t.string "caption"
79
+ t.integer "customer_id"
82
-
83
- t.string "remarks"
84
-
85
- t.string "status"
86
80
 
87
81
  t.datetime "created_at", null: false
88
82
 
89
83
  t.datetime "updated_at", null: false
90
84
 
91
- t.string "extraction_date"
85
+ t.integer "admin_id"
86
+
87
+ t.integer "crm_id"
88
+
89
+ t.integer "customer_tel_id"
90
+
91
+ t.integer "user_id"
92
+
93
+ t.index ["admin_id"], name: "index_calls_on_admin_id"
94
+
95
+ t.index ["crm_id"], name: "index_calls_on_crm_id"
96
+
97
+ t.index ["customer_id"], name: "index_calls_on_customer_id"
98
+
99
+ t.index ["customer_tel_id"], name: "index_calls_on_customer_tel_id"
100
+
101
+ t.index ["user_id"], name: "index_calls_on_user_id"
92
102
 
93
103
  end
94
104
 

1

schema.rbの追加

2020/05/16 13:10

投稿

KOO_
KOO_

スコア58

test CHANGED
File without changes
test CHANGED
@@ -61,3 +61,35 @@
61
61
 
62
62
 
63
63
  上記でtelがattributeされていない理由がわからずに困っております。ご教示よろしくお願い致します。
64
+
65
+
66
+
67
+
68
+
69
+ ```
70
+
71
+ create_table "customers", force: :cascade do |t|
72
+
73
+ t.string "company"
74
+
75
+ t.string "tel"
76
+
77
+ t.string "postnumber"
78
+
79
+ t.string "address"
80
+
81
+ t.string "caption"
82
+
83
+ t.string "remarks"
84
+
85
+ t.string "status"
86
+
87
+ t.datetime "created_at", null: false
88
+
89
+ t.datetime "updated_at", null: false
90
+
91
+ t.string "extraction_date"
92
+
93
+ end
94
+
95
+ ```