Rails 5ã‹ã‚‰ã€production environmentã§ã®DBç ´å£Šç³»ã®taskã®å®Ÿè¡Œã‚’防æ¢ã™ã‚‹ä»•çµ„ã¿ãŒå…¥ã‚Šã¾ã—ãŸã€‚ 例ãˆã°ã€production environmentã§db:dropを実行ã—よã†ã¨ã™ã‚‹ã¨ã€ä¸‹è¨˜ã®ã‚ˆã†ãªã‚¨ãƒ©ãƒ¼(ActiveRecord::ProtectedEnvironmentError)ãŒç™ºç”Ÿã—ã¾ã™ã€‚ $ RAILS_ENV=production ./bin/rails db:drop rails aborted! ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database If you are sure you want to continue, run the same co
{{#tags}}- {{label}}
{{/tags}}