How do I set global options when working with sequelize-CLI? [V6 stable] #17327
Unanswered
RenatoLopes771
asked this question in
Help & Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Most of the documentation doesn't really tackle sequelize CLI. Sequelize CLI creates the model with the attributes I want, but not with the options. The only option I can set is enable underscored timestamps with the "--underscored" command but it's missing the rest such as enabling/disabling timestamps.
I can go on the migration file it generates and manually set the timestamps option there but what if I want to set this option globally? Do I have to go manually to every single migration I create and set timestamps there?
What's the better approach for this when working with sequelize-cli?
Another unrelated question, the answer for this one is not necessary (but would be good to know): What does "options-path" in .sequelizerc actually do? It seems useless.
Beta Was this translation helpful? Give feedback.
All reactions