lib/strong_migrations/railtie.rb in strong_migrations-0.2.2 vs lib/strong_migrations/railtie.rb in strong_migrations-0.2.3
- old
+ new
@@ -3,8 +3,12 @@
module StrongMigrations
class Railtie < Rails::Railtie
rake_tasks do
load "tasks/strong_migrations.rake"
+
+ ["db:drop", "db:reset", "db:schema:load", "db:structure:load"].each do |t|
+ Rake::Task[t].enhance ["strong_migrations:safety_assured"]
+ end
end
end
end