demarches-normaliennes/db/migrate/20221118133711_create_table_batch_operation.rb
2024-08-22 09:26:48 +02:00

16 lines
522 B
Ruby

# frozen_string_literal: true
class CreateTableBatchOperation < ActiveRecord::Migration[6.1]
def change
create_table :batch_operations do |t|
t.bigint :instructeur_id, null: false
t.string :operation, null: false
t.jsonb :payload, default: {}, null: false
t.bigint :failed_dossier_ids, array: true, default: [], null: false
t.bigint :success_dossier_ids, array: true, default: [], null: false
t.datetime :run_at
t.datetime :finished_at
t.timestamps
end
end
end