Class: WorldDb::Deleter

Inherits:
Object
  • Object
show all
Includes:
Models
Defined in:
lib/worlddb/deleter.rb

Instance Method Summary collapse

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/worlddb/deleter.rb', line 11

def run
  # for now delete all tables
  
  ## Tagging.delete_all   # - use TagDb.delete!
  ## Tag.delete_all

  Name.delete_all
  Place.delete_all
  City.delete_all
  Region.delete_all
  Country.delete_all
  Continent.delete_all
  Usage.delete_all
  Lang.delete_all

  #  Prop.delete_all    # - use ConfDb.delete!
end