質問編集履歴

1

テーブルの情報を追記しました。

2019/10/29 08:02

投稿

bunny
bunny

スコア7

test CHANGED
File without changes
test CHANGED
@@ -81,3 +81,163 @@
81
81
 
82
82
 
83
83
  お手数をおかけしますが、よろしくお願いします。
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+ # 追記
92
+
93
+
94
+
95
+ ご回答いただいた方、ありがとうございます。
96
+
97
+
98
+
99
+ 取り急ぎご指摘いただいたテーブルの情報について追記いたします。
100
+
101
+
102
+
103
+ <artistsテーブル>
104
+
105
+ ```
106
+
107
+ create_table "artists", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
108
+
109
+ t.integer "url_num"
110
+
111
+ t.text "profile"
112
+
113
+ t.string "image"
114
+
115
+ t.string "record_label"
116
+
117
+ t.string "nationality"
118
+
119
+ t.string "name"
120
+
121
+ t.string "real_name"
122
+
123
+ t.string "artist_name_english"
124
+
125
+ t.string "real_name_english"
126
+
127
+ t.string "nickname"
128
+
129
+ t.date "birthday"
130
+
131
+ t.date "deadday"
132
+
133
+ t.integer "gender"
134
+
135
+ t.string "brother"
136
+
137
+ t.string "born_country"
138
+
139
+ t.string "born_area"
140
+
141
+ t.string "highschool"
142
+
143
+ t.string "university"
144
+
145
+ t.integer "enter_year"
146
+
147
+ t.integer "height"
148
+
149
+ t.integer "weight"
150
+
151
+ t.string "blood"
152
+
153
+ t.text "favorite_type"
154
+
155
+ t.text "personality"
156
+
157
+ t.text "hobby"
158
+
159
+ t.text "skill"
160
+
161
+ t.text "pre_debut"
162
+
163
+ t.text "family"
164
+
165
+ t.text "retirement"
166
+
167
+ t.date "retirement_year"
168
+
169
+ t.text "evaluation"
170
+
171
+ t.text "shaping"
172
+
173
+ t.text "favorite_food"
174
+
175
+ t.string "url"
176
+
177
+ t.string "twitter"
178
+
179
+ t.string "instagram"
180
+
181
+ t.string "weibo"
182
+
183
+ t.integer "impressions_count", default: 0
184
+
185
+ t.integer "tmp_wp_singer_id"
186
+
187
+ t.datetime "created_at", null: false
188
+
189
+ t.datetime "updated_at", null: false
190
+
191
+ t.integer "debut_year"
192
+
193
+ t.string "born_sub_region"
194
+
195
+ t.bigint "region_master_id"
196
+
197
+ t.index ["name"], name: "index_artists_on_name"
198
+
199
+ t.index ["region_master_id"], name: "index_artists_on_region_master_id"
200
+
201
+ t.index ["url_num"], name: "index_artists_on_url_num", unique: true
202
+
203
+ end
204
+
205
+ ```
206
+
207
+
208
+
209
+ <versionsテーブル>
210
+
211
+ ```
212
+
213
+ create_table "versions", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
214
+
215
+ t.string "item_type", limit: 191, null: false
216
+
217
+ t.integer "item_id", null: false
218
+
219
+ t.string "event", null: false
220
+
221
+ t.string "whodunnit"
222
+
223
+ t.text "object", limit: 4294967295
224
+
225
+ t.boolean "tmp", default: false, null: false
226
+
227
+ t.integer "status", default: 0, null: false
228
+
229
+ t.datetime "created_at"
230
+
231
+ t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
232
+
233
+ t.index ["item_type"], name: "index_versions_on_item_type"
234
+
235
+ t.index ["status"], name: "index_versions_on_status"
236
+
237
+ t.index ["whodunnit"], name: "index_versions_on_whodunnit"
238
+
239
+ end
240
+
241
+
242
+
243
+ ```