6 lines
174 B
Ruby
6 lines
174 B
Ruby
|
class AddParentToGroup < ActiveRecord::Migration[7.1]
|
||
|
def change
|
||
|
add_reference :groups, :parent, type: :uuid, index: true, foreign_key: { to_table: :groups }
|
||
|
end
|
||
|
end
|