class method self.protected_environments

Ruby on Rails 5.0.7.2

Since v5.0.7.2 Last seen in v5.0.7.2

Signature

protected_environments

The array of names of environments where destructive actions should be prohibited. By default, the value is ["production"].

Source
# File activerecord/lib/active_record/model_schema.rb, line 88
    

Defined in activerecord/lib/active_record/model_schema.rb line 88 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ModelSchema

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close