Module: Specjour::DbScrub
Instance Method Summary collapse
Instance Method Details
#scrub ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/specjour/db_scrub.rb', line 6 def scrub connect_to_database if pending_migrations? Rake::Task['db:schema:load'].invoke else purge_tables end end |