Adds ActiveRecord Extension

Removes monkey patch ActiveRecord::Base from user.rb and moves it to active_record_extension.rb using ActiveRecord::Concern.