Hello Hobo users,

I just pushed some more support for legacy model keys (aka keys that
aren't called "id").

Doctest snippet:

## Legacy Keys

HoboFields has some support for legacy keys.

    >> Advert.field_specs.clear
    >>
     class Advert
       fields do
         name :string, :default => "No Name"
         body :text
       end
       set_primary_key "advert_id"
     end
    >> up, down = HoboFields::MigrationGenerator.run(:adverts => {:id
=> :advert_id})
    >> up
    =>
     "rename_column :adverts, :id, :advert_id

Could those of you who use legacy keys please test it on your
application?

thanks,
Bryan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to