1
0

Added loading default sources

This commit is contained in:
cryptogopher
2019-09-23 21:55:04 +02:00
parent 593e11ff53
commit 0e6bbd8c74
2 changed files with 21 additions and 4 deletions

View File

@@ -163,10 +163,14 @@ class CreateUnits < ActiveRecord::Migration
description: ""
v21 = Quantity.create project: nil, domain: :diet, parent: v1, name: "Vitamin K",
description: ""
Source.create project: nil, name: "Nutrition label",
description: "From package nutrition label"
end
dir.down do
Unit.where(project: nil).delete_all
Quantity.where(project: nil).delete_all
Source.where(project: nil).delete_all
end
end
end