8 lines
212 B
Ruby
8 lines
212 B
Ruby
# Copyright (C) 2024 Manuel Bustillo
|
|
|
|
class AddParentToGroup < ActiveRecord::Migration[7.1]
|
|
def change
|
|
add_reference :groups, :parent, type: :uuid, index: true, foreign_key: { to_table: :groups }
|
|
end
|
|
end
|