class CreateSectionsReports < ActiveRecord::Migration[7.0]
  def change
    create_table :sections_reports do |t|
      t.string :name
      t.integer :tag_ids, array: true, default: []
      t.integer :section_ids, array: true, default: []
      t.integer :respondent_ids, array: true, default: []
      t.integer :transcript_sections_count
      t.references :respondent_category, null: false, foreign_key: true

      t.timestamps
    end
  end
end
