12 lines
268 B
Ruby
12 lines
268 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateLabels < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :labels do |t|
|
|
t.string :name
|
|
t.string :color
|
|
t.references :procedure, null: false, foreign_key: true
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|