We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e821ed commit 5d601d6Copy full SHA for 5d601d6
sites/zh-tw/intro-to-rails/將_topic_與_votes_做關聯.step
@@ -120,7 +120,7 @@ explanation {
120
121
`has_many :votes` 後面接出來的 `dependent: :destroy` 很重要!
122
代表該 **topic instance** 被刪除時,它所擁有的 **votes** 也會一併刪掉。
123
-如果沒有 `dependent :destroy` 這個設定,那些 votes 的資料將永遠存在資料庫裡面,
+如果沒有 `dependent: :destroy` 這個設定,那些 votes 的資料將永遠存在資料庫裡面,
124
變成孤兒資料(因為找不到它所屬於的 topic)
125
MARKDOWN
126
}
0 commit comments