Ruby on Rails Monday, July 10, 2017

uuid_function is defined - - it just switches on if postgres supports gen_random_uuid() otherwise it uses uuid_generate_v4()

gen_random_uuid() is part of the pgcrypto module -

uuid_generate_v4() is part of the uuid-ossp module -

July 10, 2017 at 12:39 PM via Postbox
That's what I thought but I wasn't sure where to place the uuid_function that the migration refers to. So that go in a helper file or part of the migration?

On Monday, July 10, 2017 at 4:38:06 AM UTC-7, Matt Hickman wrote:
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit


No comments:

Post a Comment