feat: user_post_views から id を削除(#230) (#239)

#230

Co-authored-by: miteruzo <miteruzo@naver.com>
Reviewed-on: #239
This commit was merged in pull request #239.
This commit is contained in:
2026-01-27 01:04:16 +09:00
parent 9d68367a5a
commit 19c622c5bf
3 changed files with 51 additions and 3 deletions
+2 -3
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2026_01_27_000900) do
ActiveRecord::Schema[8.0].define(version: 2026_01_27_005300) do
create_table "active_storage_attachments", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -152,13 +152,12 @@ ActiveRecord::Schema[8.0].define(version: 2026_01_27_000900) do
t.index ["ip_address_id"], name: "index_user_ips_on_ip_address_id"
end
create_table "user_post_views", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
create_table "user_post_views", primary_key: ["user_id", "post_id"], charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
t.bigint "user_id", null: false
t.bigint "post_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["post_id"], name: "index_user_post_views_on_post_id"
t.index ["user_id"], name: "index_user_post_views_on_user_id"
end
create_table "users", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|