Skip to content

Commit 886e0e9

Browse files
committed
feat: add reset method to DataImport #195
1 parent b7c3857 commit 886e0e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/autorequire/data_import.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ class DataImport
33

44
# There are dependencies here.
55
# Regions must be imported before providers
6+
def self.reset
7+
self.destroy_all_data
8+
self.import_all
9+
end
610

711
def self.destroy_all_data
812
TagCognate.destroy_all

0 commit comments

Comments
 (0)