Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jits opened this issue Feb 3, 2011 · 0 comments
Open

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

jits opened this issue Feb 3, 2011 · 0 comments

Comments

@jits
Copy link

jits commented Feb 3, 2011

Hi,

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
  ...
end
...

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?

Thanks,
Jits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant