Sha256: cdfe6c1e141e0b8ce5805d4fdde0f333c60381194d89abfdf088267ffc358519
Contents?: true
Size: 437 Bytes
Versions: 4
Compression:
Stored size: 437 Bytes
Contents
namespace :db do desc "Drops all database tables" task :drop => :environmane do Sweetsie.down! end desc "Migrates database" task :migrate => :environment do version = ENV["VERSION"] ? ENV["VERSION"].to_i : nil Sweetsie.up! version end desc "Drops and remigrates the database" task :reset => ['drop', 'migrate'] # TODO Add safty code to provent this task from running in any ENV higher than testing end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sweetsie-0.1.1 | lib/sweetsie/tasks/database.rb |
sweetsie-0.1.0 | lib/sweetsie/tasks/database.rb |
sweetsie-0.0.2 | lib/sweetsie/tasks/database.rb |
sweetsie-0.0.1 | lib/sweetsie/tasks/database.rb |