forked from fixin.me/fixin.me
Remove awesome_nested_set related columns
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user