Skip to content

Cannot dump tables if the table does not have id column #72

Description

@tientt-holistics

Environment

Ruby: 2.7.4, 3.2.6
fixture_builder version: 0.5.3.rc2

Issue

If a table does not have column id. The method dump_tables will fail.

ActiveRecord::StatementInvalid:
  PG::UndefinedColumn: ERROR:  column "id" does not exist
  LINE 1: ...ncies".* FROM "<table_name>" ORDER BY "id" ASC /...

This issue was introduced in this commit.

Suggestions

  • I think it's better to make this behavior configurable

Activity

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

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