Sha256: e55f4cc5ad0ae46126bf8f5bb43cb959e7f3d204d34e23470a1615fff7b2dc34
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
# http://nithinbekal.com/posts/safe-rake-tasks namespace :strong_migrations do task safety_assured: :environment do raise "Set SAFETY_ASSURED=1 to run this task in production" if Rails.env.production? && !ENV["SAFETY_ASSURED"] end end ["db:drop", "db:reset", "db:schema:load", "db:structure:load"].each do |t| Rake::Task[t].enhance ["strong_migrations:safety_assured"] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
strong_migrations-0.1.3 | lib/tasks/strong_migrations.rake |