-
Notifications
You must be signed in to change notification settings - Fork 467
Open
Description
Hi there! Thank you for the gem, I wonder if it supports Rails 7.x. The second question, I read the README file and it seems counterintuitive on this part:
$ rails g migration add_[ancestry]_to_[table] ancestry:string:index
class AddAncestryToTable < ActiveRecord::Migration[6.1]
def change
change_table(:table) do |t|
# postgres
t.string "ancestry", collation: 'C', null: false
t.index "ancestry"
# mysql
t.string "ancestry", collation: 'utf8mb4_bin', null: false
t.index "ancestry"
end
end
end
Why do we have null: false
on the ancestry column? How to create a root category for example that does not have any parent categories if this will create constraints on the DB level.
danielricecodes and talgat0528
Metadata
Metadata
Assignees
Labels
No labels