class method
self.protected_environments
Ruby on Rails edge
Since edgeThe array of names of environments where destructive actions should be prohibited. By default, the value is ["production"].
Source
# File activerecord/lib/active_record.rb, line 199
singleton_class.attr_reader :protected_environments
Defined in activerecord/lib/active_record.rb line 199
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord