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

14 lines
358 B
Ruby

# frozen_string_literal: true
class CreateExportTemplates < ActiveRecord::Migration[7.0]
def change
create_table :export_templates do |t|
t.string :name, null: false
t.string :kind, null: false
t.jsonb :content, default: {}
t.belongs_to :groupe_instructeur, null: false, foreign_key: true
t.timestamps
end
end
end