balderdashy / balderdashy/sails

When add Associations the foreign keys are not created

Open
#7,154 2 comments 0 reactions 0 assignees View on GitHub
does this answer your question?
Dominant language
JavaScript
Stars
22.8k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

**Node version**:
**Sails version** _(sails)_:
**ORM hook version** _(sails-hook-orm)_:
**Sockets hook version** _(sails-hook-sockets)_:
**Organics hook version** _(sails-hook-organics)_:
**Grunt hook version** _(sails-hook-grunt)_:
**Uploads hook version** _(sails-hook-uploads)_:
**DB adapter & version** _(e.g. sails-mysql@5.55.5)_:
**Skipper adapter & version** _(e.g. skipper-s3@5.55.5)_:



I created different associations like here
https://sailsjs.com/documentation/concepts/models-and-orm/associations
but no foreign keys are created

Contributor guide

Open the contributing guide

Research direction

Start with the linked Sails associations documentation and reproduce the report using a concrete association, database adapter, and version set; the issue leaves those details blank. Done means identifying why the association does not create foreign keys and confirming the expected keys are created in the database.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.