Using Rails, how can I set my primary key to not be an integer-typed column?

[code type=ruby]
create_table :employees, {:primary_key => :emp_id} do |t|
t.string :emp_id
t.string :first_name
t.string :last_name
end

Referência

Share and Enjoy !

0Shares
0 0