2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-03-02 21:47:48 +01:00
|
|
|
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
|