create procedure_labels
This commit is contained in:
parent
83c942c338
commit
9dd224c3c7
4 changed files with 30 additions and 0 deletions
12
db/migrate/20240924151336_create_procedure_labels.rb
Normal file
12
db/migrate/20240924151336_create_procedure_labels.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue