Following the comment from 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_onrename_column :locations, :start_date, :started_on
rename_column :locations, :end_date, :ended_onrename_column :purchase_orders,
rder_date,
rdered_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.
I’ve also created about 90 unit test stubs and now just comes the hard part of coding the tests


