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