fixture_builder icon indicating copy to clipboard operation
fixture_builder copied to clipboard

Cannot dump tables if the table does not have `id` column

Open tientt-holistics opened this issue 1 year ago • 0 comments

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

tientt-holistics avatar Nov 08 '24 02:11 tientt-holistics