Add best practices for Ruby gems

Content is from old thoughtbot development handbook.
Avoid bypassing Rails validations

Extracted from old thoughtbot development handbook.