Rails 4

Version maintenance and where.not support