Skip to content

Underscored lost its vital purpose in sequelize 5 #10977

Closed

Description

@misos1

What are you doing?

Seems new change is based entirely on this comment: #6423 (comment)

Partially it looks as good change except that part about auto-generated attributes. One can make all own attributes underscored by simply naming them underscored so underscored option was good for having also timestamps and foreign keys underscored. Now it is not so hard to make timestamp underscored but one must specify names of all foreign keys manually.

What do you expect to happen?

There should be option to generate underscored foreign keys and timestamps in model.

What is actually happening?

Underscored does not work for model auto-generated attributes.

Environment

Sequelize version: 5.8.6

Activity

  1. self-assigned this
    on Jul 23, 2019
  2. papb commented on Jul 25, 2019

    @papb
    Member

    Closing in favor of #11225.

    When #11225 gets closed, if anyone thinks this particular issue is still an issue, please ping me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions