Hi all, I need to work with Rails on a legacy database that does not follow Rails convention (the primary key name for example is Id instead of id). To be able to make it works, I changed the default primary key name using the ActiveRecord::Base::set_primary_key function, and it works great. However all the generated fixtures are still generated using the id primary key. I created a (more than) very small patch (http://dev.rubyonrails.org/ticket/4343) that allow to fix this, using the fact that all the templates are preprocessed through Erb. Best Regards, -- Frederick Ros aka Sleeper -- sleeper@jabber.fr The nice thing about Windows is - It does not just crash, it displays a dialog box and lets you press ''OK'' first. (Arno Schaefer''s .sig) _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core