I started to use Rails recently and at the moment I am focusing Mgrations.
Is it possible to change the type of the primary key? Changing the name is fairly easy. I have data that are referencend by a char field that has unique content.
That's what my first migration looks like.
Somebody got a hint?Code:
create_table(:pages, :primary_key => :id) do |t|
t.column :id, :string
t.column :name, :string
t.column :content, :string