Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • T torque-postgresql
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Carlos
  • torque-postgresql
  • Merge requests
  • !64

Update :has_many association to support UUIDs

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/tomasc/has-many-uuid into master Dec 21, 2021
  • Overview 4
  • Commits 4
  • Pipelines 0
  • Changes 2

Created by: tomasc

At the moment, the has_many association support only for columns of integer type.

This PR adds support for uuid.

Few notes:

  • It might be good to abstract this further – without the need for ARR_NO_CAST & ARR_CAST constants.
  • This PR fails on Ruby 3 (unrelated to changes in this PR, the master branch does fail on Ruby 3 as well). If you'd like me to rebase to v2.2.2 so that everything passes please let me know. Thanks!
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/tomasc/has-many-uuid