fixture_builder
fixture_builder copied to clipboard
Cannot dump tables if the table does not have `id` column
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