-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Feature: specify array type with model:create #589
Conversation
Ok, so I forgot that String.prototype.includes appeared in node v4.8, so will update to support node v4+ |
@sushantdhiman @sdepold could you please take a look? |
<% _.each(attributes, function (dataType, fieldName) { %> | ||
<%= fieldName %>: { | ||
type: Sequelize.<%= dataType.toUpperCase() %> | ||
<% _.each(attributes, function (attribute) { %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attributes
is an array, right? We can use .forEach
here to simplify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just one change and this should be good to go.
@sushantdhiman updated :) |
This reverts commit 0fe8643.
thank you |
for #155