Remove awesome_nested_set related columns

This commit is contained in:
2024-01-17 04:23:48 +01:00
parent dec3af27bf
commit 8dbc07ea1f
2 changed files with 1 additions and 10 deletions

View File

@@ -5,15 +5,10 @@ class CreateUnits < ActiveRecord::Migration[7.0]
t.string :symbol
t.string :name
t.decimal :multiplier, precision: 30, scale: 15
t.references :base
t.integer :lft, null: false
t.integer :rgt, null: false
t.timestamps
end
add_index :units, [:user_id, :symbol], unique: true
add_index :units, :lft
add_index :units, :rgt
end
end