Sha256: 5bec04e1a268de8435f14e99b6f8920bf0be7e23fcbb51f14ac9b59d7b41644a
Contents?: true
Size: 572 Bytes
Versions: 21
Compression:
Stored size: 572 Bytes
Contents
namespace :db do desc "Make a pristine copy of the development database for use in the gem" task :make_pristine_copy => [:environment, 'db:backup_development', 'db:reset', 'db:copy_to_pristine', 'db:restore_development'] task :copy_to_pristine => :environment do `cp -f db/development.sqlite3 db/pristine.sqlite3` end task :backup_development => :environment do `cp db/development.sqlite3 db/tmp.sqlite3` end task :restore_development => :environment do `cp -f db/tmp.sqlite3 db/development.sqlite3` `rm db/tmp.sqlite3` end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
branston-0.3.2 | lib/branston/lib/tasks/make_pristine_copy.rake |