ActiveRecord extensions for multitenant applications