1
0

Added Quantity nesting with awesome_nested_set

This commit is contained in:
cryptogopher
2019-09-08 20:00:35 +02:00
parent 96509d5285
commit b31ab9d16a
8 changed files with 35 additions and 19 deletions

View File

@@ -11,6 +11,10 @@ class CreateUnits < ActiveRecord::Migration
t.string :name
t.string :description
t.integer :domain
# fields for awesome_nested_set
t.references :parent
t.integer :lft, :null => false, :index => true
t.integer :rgt, :null => false, :index => true
end
create_table :ingredients do |t|