You’re not receiving notifications from this thread.
get data from once working db
quite a while ago I threw together a modest linguistic rails app demonstrating use of Russian 4-letter words in action based on ruby 2.3.3 which was deployed and worked online OK until the hosting company upgraded their platform to ruby 2.5.5 which broke dependencies and stopped the app.
So I copied the working app (2.3.3) to a repository on the GitHub deciding to look to it later. Then a bundle of concurrent circumstances brought about the aforementioned stretch of time to postpone the fulfilling of my decision and now I’ve run in a number of problems.
Firstly, my proficiency at RoR nosedived drastically. Secondly, the once-working-and-now-brought-back-to-life app shows blank tables which once upon a time had up to 200 rows.
My question is if it is possible to restore the data from the db folder containing:
bus@debian:~$ cd mat/maht/db && ls
development.sqlite3 migrate schema.rb seeds.rb
bus@debian:~/mat/maht/db$ ls migrate
and/or any other piece of the app a helper would consider needed.
You can run
rails db:migrate to run all the migrations in the
db/migrate folder. That will make sure all your database tables are created. It won't restore any data, just the tables and columns though.
rails db:seed will populate the database with example records (assuming there is code to create records in