forked from fixin.me/fixin.me
Cleanup Quantity :pathname related code
This commit is contained in:
@@ -10,7 +10,7 @@ class CreateQuantities < ActiveRecord::Migration[7.2]
|
||||
|
||||
# Caches; can be computed from other attributes
|
||||
t.integer :depth, null: false, default: 0
|
||||
t.string :path, null: false, limit: 512
|
||||
t.string :pathname, null: false, limit: 511
|
||||
end
|
||||
add_index :quantities, [:user_id, :parent_id, :name], unique: true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user