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

Feature: specify array type with model:create #589

Merged
merged 1 commit into from
Nov 27, 2017

Conversation

link-alex
Copy link
Contributor

for #155

@link-alex
Copy link
Contributor Author

link-alex commented Nov 15, 2017

Ok, so I forgot that String.prototype.includes appeared in node v4.8, so will update to support node v4+

@link-alex
Copy link
Contributor Author

link-alex commented Nov 25, 2017

@sushantdhiman @sdepold could you please take a look?

<% _.each(attributes, function (dataType, fieldName) { %>
<%= fieldName %>: {
type: Sequelize.<%= dataType.toUpperCase() %>
<% _.each(attributes, function (attribute) { %>
Copy link
Contributor

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

Copy link
Contributor

@sushantdhiman sushantdhiman left a 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.

@link-alex
Copy link
Contributor Author

@sushantdhiman updated :)

@sushantdhiman sushantdhiman merged commit 0fe8643 into sequelize:master Nov 27, 2017
sushantdhiman added a commit that referenced this pull request Dec 3, 2017
@atristannewman
Copy link

thank you

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