Skip to content

enhance t.references to create column type matching foreign primary key column #3

@ronen

Description

@ronen

t.references always creates an integer column. But that won't work as a foreign key if the referenced table's id isn't an integer. For example, it might be a uuid (see Rails 4 Postgres UUID Primary Key Guide

t.references could possibly look up the primary key column type of the table being referenced, and act accordingly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions