Sha256: 07a45488ac5395cb92f38faa09f0288560acb14f42111c9aa591576c4942f80e
Contents?: true
Size: 760 Bytes
Versions: 20
Compression:
Stored size: 760 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 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 end end # class Deleter end # module SportDb
Version data entries
20 entries across 20 versions & 1 rubygems