use railties.each