Took upper limit to rails 4.1.
Added enum support for postgresql.