質問編集履歴
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,21 +12,21 @@
|
|
12
12
|
|
13
13
|
```
|
14
14
|
|
15
|
-
app/models/
|
15
|
+
app/models/item.rb
|
16
16
|
|
17
17
|
# id :integer not null, primary key
|
18
18
|
|
19
|
-
# sales_company :string(255)
|
19
|
+
# sales_company :string(255) # 販売会社
|
20
20
|
|
21
|
-
# serial_number
|
21
|
+
# serial_number :string(255) # シリアルナンバー
|
22
22
|
|
23
|
-
# category_id :integer
|
23
|
+
# category_id :integer # カテゴリー分類
|
24
24
|
|
25
|
-
# kind_id :integer
|
25
|
+
# kind_id :integer # 種類分類
|
26
26
|
|
27
|
-
# created_at :datetime not null # 作成日時
|
27
|
+
# created_at :datetime not null # 作成日時
|
28
28
|
|
29
|
-
# updated_at :datetime not null # 更新日時
|
29
|
+
# updated_at :datetime not null # 更新日時
|
30
30
|
|
31
31
|
```
|
32
32
|
|
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
self.data = [
|
40
40
|
|
41
|
-
{id: 1, name:
|
41
|
+
{id: 1, name: '車'}, {id: 2, name: 'パソコン'}, {id: 3, name: '家電'}
|
42
42
|
|
43
43
|
]
|
44
44
|
|
@@ -54,11 +54,9 @@
|
|
54
54
|
|
55
55
|
self.data = [
|
56
56
|
|
57
|
-
{id: 1, name:
|
57
|
+
{id: 1, name: 'レクサス'}, {id: 2, name: 'windows'}, {id: 3, name: 'Mac'},
|
58
58
|
|
59
|
-
{id: 4, name:
|
59
|
+
{id: 4, name: '炊飯器'}, {id: 5, name: '冷蔵庫'}
|
60
|
-
|
61
|
-
|
62
60
|
|
63
61
|
]
|
64
62
|
|