Device needs to be added to this list. broke our app when trying to create an object called device.
Mike Berning, 2011/01/05 21:27
If you have columns in your database named object_id it will cause problems for active record. This is due to object_id being a method available on all Objects and when active record tries to access the column value for object_id it is instead returned the Ruby object_id. This can cause your selects and joins to not work.
rails/pages/reservedwords.txt · Last modified: 2009/12/01 10:49 by colinlaw
Discussion
Hi,
I've collected my own list of conflicting column, method etc names , along with URL reporting issue. Not sure how to integrate this info
http://h4dev.com/entries?search=reserved+keyword+don%27t+use
Device needs to be added to this list. broke our app when trying to create an object called device.
If you have columns in your database named object_id it will cause problems for active record. This is due to object_id being a method available on all Objects and when active record tries to access the column value for object_id it is instead returned the Ruby object_id. This can cause your selects and joins to not work.