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

Add UUID support to validates_uniqueness_of matcher #334

Closed
wants to merge 1 commit into from
Closed

Add UUID support to validates_uniqueness_of matcher #334

wants to merge 1 commit into from

Conversation

mjonuschat
Copy link

Since PostgreSQL is very strict in regard to column types validates_uniqueness_of needs to support :uuid as a column type to generate a valid test value. This pull request adds the necessary column type detection and respective tests.

end
end

context 'with an existing record that conflicts with scope.next' do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This context shares the same name with a context above. It looks like you copied this from the datetime context, which erroneously duplicates this context. Do you think you can remove this? I'll take care of removing the other one.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I will just go ahead and take care of removing this for you. Everything else looks fine.

@mcmire
Copy link
Collaborator

mcmire commented Aug 10, 2013

Merged!

@mcmire mcmire closed this Aug 10, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants