Database field and table names to avoid when using Rails

I’ve looked for a list of field names to not use that I can hand off to the db folks on projects but so far I cannot find one.

I guess I’ll just start documenting the ones I know of to be problematic.

Field Names:

  • type
  • errors
  • callback
  • attributes

Table Names:

  • tests

Possibly more information here:

http://wiki.rubyonrails.org/rails/pages/reservedwords

Leave a Reply

Your email address will not be published. Required fields are marked *