demarches-normaliennes/db/migrate/20240925133719_create_dossier_labels.rb

13 lines
297 B
Ruby
Raw Permalink Normal View History

2024-09-25 16:03:58 +02:00
# frozen_string_literal: true
class CreateDossierLabels < ActiveRecord::Migration[7.0]
def change
create_table :dossier_labels do |t|
t.references :dossier, null: false, foreign_key: true
2024-10-29 14:52:14 +01:00
t.references :label, null: false, foreign_key: true
2024-09-25 16:03:58 +02:00
t.timestamps
end
end
end