Skip to content

Commit 826b068

Browse files
committed
Fix a typo. Fixes ruby-china#11.
Thanks @zhyt1985.
1 parent d04f433 commit 826b068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/zh-CN/active_record_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Active Record 中的“多约定少配置”原则
6868
* `created_at` - 创建记录时,自动设为当前的时间戳;
6969
* `updated_at` - 更新记录时,自动设为当前的时间戳;
7070
* `lock_version` - 在模型中添加[乐观锁定](http://api.rubyonrails.org/classes/ActiveRecord/Locking.html)功能;
71-
* `type` - 让模型使用[单表集成](http://api.rubyonrails.org/classes/ActiveRecord/Base.html#label-Single+table+inheritance)
71+
* `type` - 让模型使用[单表继承](http://api.rubyonrails.org/classes/ActiveRecord/Base.html#label-Single+table+inheritance)
7272
* `(association_name)_type` - [多态关联](association_basics.html#polymorphic-associations)的类型;
7373
* `(table_name)_count` - 缓存关联对象的数量。例如,`posts` 表中的 `comments_count` 字段,缓存每篇文章的评论数;
7474

0 commit comments

Comments
 (0)