create procedure_labels

This commit is contained in:
Lisa Durand 2024-09-25 15:05:09 +02:00
parent 83c942c338
commit 9dd224c3c7
No known key found for this signature in database
GPG key ID: 0DF91F2CA1E8B816
4 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# 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