Skip to content

.sequelizerc migrations-path does not work #3

@daniq87

Description

@daniq87

What you are doing?

node_modules/.bin/sequelize model:generate --name User --attributes username:string

My .sequelizesrc file looks like:
module.exports = {
'config': "config/local-development.json",
'options-path': "src/build/ports/database/migrations",
'models-path': "src/models"
}

What do you expect to happen?

I wanted to generate the migration in the source specified in the options-path in my .sequelizesrc file.
But its generate the migration in my-project/migrations

What is actually happening?

It generates the model in the correct path but the migration in the wrong place.
New model was created at /Users/dquintana/dev/buzz-microservices/channel-ota/src/models/user.ts .
New migration was created at /Users/dquintana/dev/buzz-microservices/channel-ota/migrations/20180210094213-User.ts

I've tried put in the .sequelizesrc: migrations-path instead of options-path but I get an error:
Unknown argument: migrations-path

Dialect: mysql /
__Sequelize CLI version: 3.2.0-c
__Sequelize version: 4.31.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions