You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 auuid
(see Rails 4 Postgres UUID Primary Key Guidet.references
could possibly look up the primary key column type of the table being referenced, and act accordingly.The text was updated successfully, but these errors were encountered: