Hello, all. New to programming in general. Attempting to build an app to manage work orders for a maintenance team. Here is my environment the best I can describe:
Ruby 3.3.1 / Rails 7.1.3.3 Gems: devise, rolify, esbuild, cancancan, defaults DB: postgresql
I was developing and making good progress, migrations were working well. I realized I needed to make a change to a couple tables in my database, so I created the migration file and adjusted it as needed, but when I tried to run ‘rails db:migrate’ I received the error 'Don’t know how to build task ‘test:prepare’.
I had not gotten this error before and now I am stuck, as every rails or rake command I try to run fails with this same error. I know I did something to cause this, but because I didn’t realize it until I had to run a migration, I don’t know what caused it. My rails server still starts, but if I cannot get past this error, I won’t be able to continue.
I am happy to provide any files needed to troubleshoot, but all my research so far has resulted in responses of ‘It must be something in your configuration or environment’. What I can say is that, in troubleshooting, I created a new app, dropped the database and rebuilt based on my previous migration files. But as soon as I copied all my other files (models, controllers, views, environments, routes, initializers, helpers, javascripts, css), the issue showed up again.
Any help is GREATLY appreciated.