Adjust query generating to be compatible with Rails 4
Remove superfluous all statements
Update application configuration to use Rails 4
Adjust query generating to be compatible with Rails 4
Update application configuration to use Rails 4