Delete Units respecting foreign key constraint

This commit is contained in:
2025-01-16 20:46:22 +01:00
parent 7962cdf169
commit 5fff9adf4d
4 changed files with 4 additions and 5 deletions

View File

@@ -20,6 +20,4 @@ end
# Formulas will be deleted as dependent on Quantities
#[Source, Quantity, Unit].each { |model| model.defaults.delete_all }
# To clear contents of the table, use #truncate instead of #delete_all. This
# avoids foreign_key constraints errors.
require_relative 'seeds/units.rb'