So you erased a whole day's work? There is hope! The linked article tells how to recover from an accidental git reset --hard.
git reset --hard
Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)
You will need to install GNU find utils as described in this SO post Show archive.org snapshot .