how to define ID as char(22)

Hi guys,
    I am newer of ROR. I want to use UUID in my project but I don't
know where and how to define ID as char(22).
    Any one can help me?
    Thanks a lot!

Daniel Chen wrote:

Hi guys,
    I am newer of ROR. I want to use UUID in my project but I don't
know where and how to define ID as char(22).
    Any one can help me?
    Thanks a lot!

Refer http://rorexperts.com/viewtopic.php?t=110&highlight=