Skip to main content

Crossing borders: Exploring Active Record

Popularity Report

Total Popularity Score: 0

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Rank

Bookmark History

Saved by 9 people (1 private), first by anonymouse user on 2006-03-08


Public Sticky notes

When I took Rails out for a test drive, I freely admit my attitude was more than a little arrogant. I didn't think Active Record was up to the job, but I've since learned that it offers everything I need for some problems.

Highlighted by maggie_diigo

  • Model class names such as EmailAccount are in CamelCase and are English singulars.
  • Database table names such as email_accounts use underscores between words and are English plurals.
  • Primary keys uniquely identify rows in relational databases. Active Record uses id for primary keys.
  • Foreign keys join database tables. Active Record uses foreign keys such as person_id with an English singular and an _id suffix.
  • Highlighted by maggie_diigo