We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
before_create doesn't work for me (rails 5, ruby-2.3.1). before_validation fix the problem
using references will add an index automatically on the "role_id" field
Adjusted code snippets to use Markdown syntax highlighting
Fixed for Rails 4 compatibility
Updated How To: Add a default role to a User (markdown)
Updated HOW TO: Add a default role to a User (markdown)