parent
48dc612ff8
commit
d779bd78a7
@ -1,2 +1,3 @@
|
|||||||
class ProjectCategory < ApplicationRecord
|
class ProjectCategory < ApplicationRecord
|
||||||
|
has_ancestry
|
||||||
end
|
end
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
class AddAncestryToProjectCategories < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
add_column :project_categories, :ancestry, :string
|
||||||
|
add_index :project_categories, :ancestry
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue