Method: ActiveRecord::ModelSchema::ClassMethods#protected_environments=

Defined in:
activerecord/lib/active_record/model_schema.rb

#protected_environments=(environments) ⇒ Object

Sets an array of names of environments where destructive actions should be prohibited.



322
323
324
# File 'activerecord/lib/active_record/model_schema.rb', line 322

def protected_environments=(environments)
  @protected_environments = environments.map(&:to_s)
end