Remove rails dependency
Add revision if it is available