Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed model template - assosciations compatible with current sequelize #499

Closed
wants to merge 3 commits into from

Conversation

deejes
Copy link

@deejes deejes commented Aug 1, 2017

Sequelize takes model associations in an updated format. Edits to the template now make it compatible with the current version of Sequelize.

@@ -6,14 +6,11 @@ module.exports = function(sequelize, DataTypes) {
<%= fieldName %>: DataTypes.<%= attributes[fieldName].toUpperCase() %>
<%= (Object.keys(attributes).length - 1) > index ? ',' : '' %>
<% }) %>
}, {
<%= underscored ? 'underscored: true,' : '' %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened to this option?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed it by mistake. Adding it back.

@sushantdhiman
Copy link
Contributor

#470

codetriage-readme-bot pushed a commit to codetriage-readme-bot/cli that referenced this pull request Jun 5, 2019
[nextercism] skip empty files on submit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants