Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Latest commit

 

History

History
10 lines (10 loc) · 376 Bytes

ActiveRecord-Checklist.md

File metadata and controls

10 lines (10 loc) · 376 Bytes
  • Are there unnecessary n+1 queries?
  • Are there missing indexes?
  • Defined #to_s?
  • Validate associations (e.g. validates_associated :books) required?
  • Specify dependencies if foreign keys are not defined (e.g. has_many dependent: destroy)
  • All attribute validations?
  • Null constraints?
  • Default attributes?
  • Foreign keys?
  • Conforms to the [[ActiveRecord Style Guide]]?