rails
https://github.com/rails/rails
Ruby
Ruby on Rails
ActiveRecord::ModelSchema::ClassMethods#protected_environments
The array of names of environments where destructive actions should be prohibited. By default, the value is <tt>["production"]</tt>.
Edit
git clone [email protected]:rails/rails.git
cd rails
open activerecord/lib/active_record/model_schema.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ActiveRecord--ModelSchema--ClassMethods-protected_environments-for-pr
# Commit to gitgit add activerecord/lib/active_record/model_schema.rbgit commit -m "better docs for ActiveRecord::ModelSchema::ClassMethods#protected_environments"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ActiveRecord--ModelSchema--ClassMethods-protected_environments-for-pr
hub pull-request
# Celebrate!