提交 f9793a12 编写于 作者: J Jason Noble

Reword Post model to note there are lines not shown

上级 45f0fead
......@@ -1654,9 +1654,10 @@ model, `app/models/post.rb`, as follows:
```ruby
class Post < ActiveRecord::Base
has_many :comments, dependent: :destroy
validates :title, presence: true,
length: { minimum: 5 }
has_many :comments, dependent: :destroy
[...]
end
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册