Reputation: 31
I messed up pretty bad and created a rails application without the test
directory on accident. I now need to make a whole new rails application but I have put a substantial amount of work into this first one. Is there a way that I can transfer my schema, migrations and any other database (postgres in this case) related things over to the new application with ease?
Upvotes: 0
Views: 671
Reputation: 14910
You don't really need the migrations if the db is as you want it, you can run rails db:schema:dump
if you want to generate schema.rb
file. The model files can be safely copied to your new project.
You can also just create a new project and then copy that projects test folder into your old one.
Upvotes: 1