Active Record Scope: default_scope: 默认的检索方式 Scope 总是返回ActiveRecord::Relation Validations: 数据总是要经过Validations才能存在数据库之中 Writing your own validation: N+1 Read More
posted @ 2019-04-14 22:14 vixennn Views(144) Comments(0) Diggs(0)