Not working for models with non-standard ID fields #20

jits opened this Issue Feb 3, 2011 · 0 comments

1 participant



Excellent gem! Looks like some great work there :)

I am having an issue getting this to work for a model that has a non-standard ID field - I am using a UUID for the ID field (details below).

Seems like the db:migrate process fails to recognise this model and doesn't create it's archive table.

The migration for this model looks like:

create_table :components, :id => false do |t|
  t.string :uuid, :limit  => 36, :null => false

In the model I have...

set_primary_key :uuid
attr_readonly :id
before_validation :set_uuid

Would you be able to take a look at this issue? Anything more I can do to help?


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment