Skip to content

Commit 5d601d6

Browse files
authored
Update 將_topic_與_votes_做關聯.step
1 parent 0e821ed commit 5d601d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sites/zh-tw/intro-to-rails/將_topic_與_votes_做關聯.step

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ explanation {
120120

121121
`has_many :votes` 後面接出來的 `dependent: :destroy` 很重要!
122122
代表該 **topic instance** 被刪除時,它所擁有的 **votes** 也會一併刪掉。
123-
如果沒有 `dependent :destroy` 這個設定,那些 votes 的資料將永遠存在資料庫裡面,
123+
如果沒有 `dependent: :destroy` 這個設定,那些 votes 的資料將永遠存在資料庫裡面,
124124
變成孤兒資料(因為找不到它所屬於的 topic)
125125
MARKDOWN
126126
}

0 commit comments

Comments
 (0)