I would love to see support for foreign_key and references in migration to support composite keys.
such that the following will work:
def change
create_table :tags do |t|
t.string :user_first_name
t.string :user_last_name
t.foreign_key :user, column: [:first_name, :last_name], primary_key: [:user_first_name, :user_last_name]
end
end
Similar for t.references
I would love to see support for
foreign_keyandreferencesin migration to support composite keys.such that the following will work:
Similar for
t.references