ruby on rails - How to disallow heroku rake db:drop -


i have whole bunch of projects in same folder , run command "heroku rake db:drop" when i'm working on new projects. nightmare run command on wrong project 1 day. though have daily backups horrible lose many hours of data.

is possible somehow disallow commands specific projects? example, i'd disallow following commands on our live projects if possible -

heroku rake db:drop

heroku rake db:migrate version=0

it's not possible in heroku gem.

maybe monkey patch locally suit needs? https://github.com/heroku/heroku/blob/master/lib/heroku/command/run.rb


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -