20230330140036_create_bulk_import_rows.rb 285 B

123456789101112
  1. # frozen_string_literal: true
  2. class CreateBulkImportRows < ActiveRecord::Migration[6.1]
  3. def change
  4. create_table :bulk_import_rows do |t|
  5. t.references :bulk_import, null: false, foreign_key: { on_delete: :cascade }
  6. t.jsonb :data
  7. t.timestamps
  8. end
  9. end
  10. end