Registry / devops / sails-generate-migration

sails-generate-migration

JSON →
library1.1.2jsnpmunverified

A Sails.js generator plugin that creates migration files via `sails generate migration`. Version 1.1.2 is the latest stable release, updated infrequently. It allows customization by overriding the default generators or adding new ones. Suitable for teams needing consistent migration templates. Works with Sails >= 1.0.

npm install sails-generate-migration
INSTALL
IMPORT
SIG · SAILS-GENERATE-MIG
S
sails-generate-migration
devopsjavascriptv1.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

generator
N/A – CLI tool, not imported directly
This package is a Sails generator, used via CLI, not imported in code.

Installs the generator, configures .sailsrc, and runs the generator to create a migration file.

npm install sails-generate-migration --save-dev # Add to .sailsrc: # { # "modules": { # "migration": "sails-generate-migration" # } # } sails generate migration
Debug
Known issues
gotchaGenerator must be declared in .sailsrc or it will not be recognized
fix
Add the modules.migration entry to .sailsrc as shown in the README.
affects: >=1.0.0
deprecatedThe package was migrated from 'sails-generate-migration' to '@faou/sails-generate-migration'
fix
Install '@faou/sails-generate-migration' instead of 'sails-generate-migration'.
affects: >=1.0.0
gotchaGenerator templates are not customizable out of the box; you must create a local generator to customize
fix
Point the modules.migration to a local path (e.g., './generators/migration') for custom templates.
affects: >=1.0.0
Errors
Common errors & fixes
Error: No generator called 'migration' found
The generator is not registered in .sailsrc or not installed.
fix
Ensure sails-generate-migration is installed and configured in .sailsrc under modules.migration.
Upgrade
Version history
1.1.2latest on npm
Audit
Dependencies
sailsrequiredRequires Sails.js framework to be installed as a peer dependency
Agent activity
2 hits · last 30 days
node
2
Resources
sails-generate-migration — npm install sails-generate-migration · libregistry