Disable harmful rake tasks in production

No need to check whether you are running that `bundle exec rake db:reset`
command on staging or production anymore 😱.

As described in https://github.com/adamcooke/rails-safe-tasks

> This gem provides an extra layer of safety between you and deleting all your
> production data by accident.

> It restricts the use of various rake tasks (including db:drop, db:reset etc...)
> when you are running your application in a production environment.
This commit is contained in:
Pau Perez
2019-05-22 15:30:43 +02:00
parent 59d4e3d9e2
commit 4c19c1a0a5
2 changed files with 3 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}.git" }
gem 'rails', '~> 3.2.22'
gem 'rails-i18n', '~> 3.0.0'
gem 'rails_safe_tasks', '~> 1.0'
gem 'i18n', '~> 0.6.11'
gem 'i18n-js', '~> 3.2.1'

View File

@@ -617,6 +617,7 @@ GEM
rails-i18n (3.0.1)
i18n (~> 0.5)
rails (>= 3.0.0, < 4.0.0)
rails_safe_tasks (1.0.0)
railties (3.2.22.5)
actionpack (= 3.2.22.5)
activesupport (= 3.2.22.5)
@@ -853,6 +854,7 @@ DEPENDENCIES
rack-ssl
rails (~> 3.2.22)
rails-i18n (~> 3.0.0)
rails_safe_tasks (~> 1.0)
redcarpet
roadie-rails (~> 1.1.1)
roo (~> 2.7.0)