activeuuid
activeuuid copied to clipboard
Schema dumper
It will add non-integer primary key entries to the schema dump
It is foken osom! I could not even bring myself to do this patch. It's sad that AR dumper source is so old and unpatchable (
It doesn't work for me.
Rails 3.2.9 , Postgresql 8.4
db/schema.rb
:
ActiveRecord::Schema.define(:version => 20121224130418) do
create_table "objects", :id => false, :force => true do |t|
t.string "uuid", :limit => nil, :null => false
end
end
As you can see it has t.string
instead of t.uuid
That's odd, I currently use it on 3.2.9 myself. What gems do you have installed? Maybe another also overrides schema dumper?
It didn't work for me either. The uuid columns are mistaken as string columns and it requires a peek at the sql column type to figure it out.
I've got a modified version here.
Let me know if it works (@paneq)