demarches-normaliennes/db/migrate/20240924151336_create_procedure_labels.rb

13 lines
287 B
Ruby
Raw Normal View History

2024-09-25 15:05:09 +02:00
# frozen_string_literal: true
class CreateProcedureLabels < ActiveRecord::Migration[7.0]
def change
create_table :procedure_labels do |t|
t.string :name
t.string :color
t.references :procedure, null: false, foreign_key: true
t.timestamps
end
end
end