Skip to content

Output columns in database schema order, not A-Z order. #998

Open
@PeterTakahashi

Description

@PeterTakahashi

Currently, when columns appear in the model, they are output in A-Z order. I would like the output to be in the order of the columns in the database. This is because I design my models with strict control over the order of columns in the database.

For example, date columns such as created_at and updated_at should be placed last in the table, and foreign keys such as user_id should be placed above them.

Commands

Version

  • annotate version
  • rails version
  • ruby version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions