balderdashy / balderdashy/sails
How can i exclude the specific model from auto-migration.
- Dominant language
- JavaScript
- Stars
- 22.8k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
How can I exclude the specific model from auto-migration in sails v1.0
I have tried to add migrate: 'safe' in the model. but it's not working.
**Node version**: v10.15.3
**Sails version** _(sails)_: 1.0.0
**ORM hook version** _(sails-hook-orm)_: 2.0.0-16
**Sockets hook version** _(sails-hook-sockets)_: 1.4.0
**Grunt hook version** _(sails-hook-grunt)_: 3.0.2
**DB adapter & version** _(e.g. sails-mysql@5.55.5)_: 1.0.1
Contributor guide
Research direction
Start by checking Sails v1 model migration configuration and sails-hook-orm behavior with the reported versions. Reproduce the auto-migration using the model's migrate: 'safe' setting and determine whether a supported per-model exclusion exists; document the configuration or limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100