instance method
protected_environments
Ruby on Rails 6.0.6
Since v5.2.8.1Signature
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 246
def protected_environments
if defined?(@protected_environments)
@protected_environments
else
superclass.protected_environments
end
end
Defined in activerecord/lib/active_record/model_schema.rb line 246
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ModelSchema::ClassMethods