Minor change (name of test context).
When saving a user, if no invitation_limit has been set, it is set to the value currently configured in application.rb.

This means that a newly saved user has his invitation_limit set to the currently configured value.
Added index to Users table on the invitation_limit column.

This should speed up searching for users who need their invitation_limit attribute updated every time CleanupInvitationsJob runs.