1
0

Fixed Quantity defaults import after removing :name uniqueness

Added awesome_nested_set #each_with_path
This commit is contained in:
cryptogopher
2020-06-20 00:52:37 +02:00
parent 61498018e7
commit 4df88598f8
6 changed files with 35 additions and 7 deletions

View File

@@ -186,6 +186,7 @@ class LoadDefaults < ActiveRecord::Migration
dir.down do
Source.where(project: nil).delete_all
Formula.joins(:quantity).where(quantities: {project_id: nil}).delete_all
Quantity.where(project: nil).delete_all
Unit.where(project: nil).delete_all
end