Fixed the rails creation with postgresql.