Closed kawabuchi-tetsuya closed 2 months ago
https://github.com/user-attachments/assets/6e865058-40cb-4875-98dd-a636f981a1f8
erDiagram
%% 1:0or多
USERS ||--o{ POSTS : "has many / belongs to"
USERS ||--o{ FAVORITES : "has many / belongs to"
POSTS ||--o{ FAVORITES : "has many / belongs to"
USERS {
bigint id PK
string email
string password_digest
datetime created_at
datetime updated_at
}
POSTS {
bigint id PK
bigint user_id FK
string title
string content
datetime created_at
datetime updated_at
}
FAVORITES {
bigint id PK
bigint post_id FK
bigint user_id FK
datetime created_at
datetime updated_at
}
erDiagram
%% ユーザーフォロー機能
"USERS (FOLLOWERS)" ||--o{ RELATIONSHIPS : "has many / belongs to"
"USERS (FOLLOWEES)" ||--o{ RELATIONSHIPS : "has many / belongs to"
"USERS (FOLLOWERS)" {
bigint id PK
string email
string password_digest
datetime created_at
datetime updated_at
}
"USERS (FOLLOWEES)" {
bigint id PK
string email
string password_digest
datetime created_at
datetime updated_at
}
RELATIONSHIPS {
bigint id PK
bigint follower_id FK
bigint followee_id FK
datetime created_at
datetime updated_at
}
@ochi-sho-private-study 変更しました。 https://github.com/ok-os-job-change-team/tetsuya-twitter-clone-bootcamp/pull/74/commits/3cc1533d92c6a7377ab3ac71b80e157e25f5539b
@ochi-sho-private-study
followee?
メソッドを active_relationship.rb
から削除しました。
https://github.com/ok-os-job-change-team/tetsuya-twitter-clone-bootcamp/pull/74/commits/b1d7d5e60f42499933337af1d02a151a3d21131c
@ochi-sho-private-study ひとまず対応しました。 https://github.com/ok-os-job-change-team/tetsuya-twitter-clone-bootcamp/pull/74/commits/c53016707e6fd8d3f29bdc82ffac8d8fd1c3f2a4
今回対応した issue
やったこと
残りの作業
できるようになること(ユーザ目線)
できなくなること(ユーザ目線)
その他
動作確認
https://github.com/user-attachments/assets/4210514f-80a9-4469-a8d1-affde456ada2