I have a model with a jsonb field where responses from a third-party service are stored. The response changes periodically; some fields are added, some disappear. I want to generate a CSV from a sample of records. To do this, I need to gather all possible fields from the sample and turn them into columns in the CSV file.