質問編集履歴
1
テーブルの情報を追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -39,4 +39,84 @@
|
|
39
39
|
|
40
40
|
こちらで質問をさせていただくのはほぼ初めてなので、不足する情報などがありましたらそちらもご指摘いただけると幸いです。
|
41
41
|
|
42
|
-
お手数をおかけしますが、よろしくお願いします。
|
42
|
+
お手数をおかけしますが、よろしくお願いします。
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
# 追記
|
47
|
+
|
48
|
+
ご回答いただいた方、ありがとうございます。
|
49
|
+
|
50
|
+
取り急ぎご指摘いただいたテーブルの情報について追記いたします。
|
51
|
+
|
52
|
+
<artistsテーブル>
|
53
|
+
```
|
54
|
+
create_table "artists", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
55
|
+
t.integer "url_num"
|
56
|
+
t.text "profile"
|
57
|
+
t.string "image"
|
58
|
+
t.string "record_label"
|
59
|
+
t.string "nationality"
|
60
|
+
t.string "name"
|
61
|
+
t.string "real_name"
|
62
|
+
t.string "artist_name_english"
|
63
|
+
t.string "real_name_english"
|
64
|
+
t.string "nickname"
|
65
|
+
t.date "birthday"
|
66
|
+
t.date "deadday"
|
67
|
+
t.integer "gender"
|
68
|
+
t.string "brother"
|
69
|
+
t.string "born_country"
|
70
|
+
t.string "born_area"
|
71
|
+
t.string "highschool"
|
72
|
+
t.string "university"
|
73
|
+
t.integer "enter_year"
|
74
|
+
t.integer "height"
|
75
|
+
t.integer "weight"
|
76
|
+
t.string "blood"
|
77
|
+
t.text "favorite_type"
|
78
|
+
t.text "personality"
|
79
|
+
t.text "hobby"
|
80
|
+
t.text "skill"
|
81
|
+
t.text "pre_debut"
|
82
|
+
t.text "family"
|
83
|
+
t.text "retirement"
|
84
|
+
t.date "retirement_year"
|
85
|
+
t.text "evaluation"
|
86
|
+
t.text "shaping"
|
87
|
+
t.text "favorite_food"
|
88
|
+
t.string "url"
|
89
|
+
t.string "twitter"
|
90
|
+
t.string "instagram"
|
91
|
+
t.string "weibo"
|
92
|
+
t.integer "impressions_count", default: 0
|
93
|
+
t.integer "tmp_wp_singer_id"
|
94
|
+
t.datetime "created_at", null: false
|
95
|
+
t.datetime "updated_at", null: false
|
96
|
+
t.integer "debut_year"
|
97
|
+
t.string "born_sub_region"
|
98
|
+
t.bigint "region_master_id"
|
99
|
+
t.index ["name"], name: "index_artists_on_name"
|
100
|
+
t.index ["region_master_id"], name: "index_artists_on_region_master_id"
|
101
|
+
t.index ["url_num"], name: "index_artists_on_url_num", unique: true
|
102
|
+
end
|
103
|
+
```
|
104
|
+
|
105
|
+
<versionsテーブル>
|
106
|
+
```
|
107
|
+
create_table "versions", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
108
|
+
t.string "item_type", limit: 191, null: false
|
109
|
+
t.integer "item_id", null: false
|
110
|
+
t.string "event", null: false
|
111
|
+
t.string "whodunnit"
|
112
|
+
t.text "object", limit: 4294967295
|
113
|
+
t.boolean "tmp", default: false, null: false
|
114
|
+
t.integer "status", default: 0, null: false
|
115
|
+
t.datetime "created_at"
|
116
|
+
t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
|
117
|
+
t.index ["item_type"], name: "index_versions_on_item_type"
|
118
|
+
t.index ["status"], name: "index_versions_on_status"
|
119
|
+
t.index ["whodunnit"], name: "index_versions_on_whodunnit"
|
120
|
+
end
|
121
|
+
|
122
|
+
```
|