Sha256: 2c725c545c493df68d5577bfe1c7689f7bbc5ffc83ce1dc932fb2dd8ddb8592c
Contents?: true
Size: 836 Bytes
Versions: 3
Compression:
Stored size: 836 Bytes
Contents
module SportDb class Deleter ###### # NB: make models available in sportdb module by default with namespace # e.g. lets you use Team instead of Models::Team include SportDb::Models def run # for now delete all tables Goal.delete_all Record.delete_all Game.delete_all Event.delete_all EventTeam.delete_all EventGround.delete_all Group.delete_all GroupTeam.delete_all Round.delete_all Badge.delete_all Run.delete_all Race.delete_all Roster.delete_all Track.delete_all Person.delete_all Team.delete_all League.delete_all Season.delete_all Ground.delete_all # stadiums end end # class Deleter end # module SportDb
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sportdb-1.8.5 | lib/sportdb/deleter.rb |
sportdb-1.8.3 | lib/sportdb/deleter.rb |
sportdb-1.8.2 | lib/sportdb/deleter.rb |