Following a comment (that was from when the blog had comments) from mathie (Graeme
Mathieson) on my last post on Rails-CMDB about the the Rails way for naming of columns
within Models. I’m planning on doing the following column rename for the next release of
Rails-CMDB:
rename_column :assets, :delivery_date, :delivered_on
rename_column :assets, :removal_date, :removed_on
rename_column :locations, :start_date, :started_on
rename_column :locations, :end_date, :ended_on
rename_column :purchase_orders, :order_date, :ordered_on
rename_column :vendors, :last_order_date, :stopped_ordering_on
So the question for the Rails coders out there - does this seem correct ? There’s also a
single table who’s primary field is not called name, so I guess to do it in the Rails way it
should be changed as well.