Upgrade rails

Avoid SQL injection and dependency hell