On 17.1.2007, at 23.55, Michael Koziarski wrote:
I don't know if this patch (http://dev.rubyonrails.org/ticket/7085) is worthy ofinclusion in 1.2, but I thought I'd highlight here just in case it is.Basically, it fixes the schema dumper and create_table in migrations todetermine the name of the primary key by looking atActiveRecord::Base.primary_key_prefix_type rather than just using 'id'. Thepatch fixes a significant annoyance for people who use this option.It seems like the wrong solution, shouldn't it be like create_table :enterprisies, :id=>:enterprisey_id do |t|
Koz,I don't think this patch is about the API. ActiveRecord::Base.primary_key_prefix_type already exists, the patch just makes the schema dumper and migrations respect that setting.
//jarkko -- Jarkko Laine http://jlaine.net http://dotherightthing.com http://www.railsecommerce.com http://odesign.fi
smime.p7s
Description: S/MIME cryptographic signature
