Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
How am I supposed to replace the project files without getting a bunch of errors?
I have tried to replace my biller project folder with the new project files but when I try to load up the rails server it gives me the error: Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development
I then try to run this command and it aborts my rake saying: rake aborted! uninitialized constant Mysql2::Client::SECURE_CONNECTION
I have looked at the similar questions and answers to this problem but they did not end up working for me
Maciej Czuchnowski36,441 Points
OK, don't treat it as replacing. Just use it as another project. You could also try doing
rake db:create and then
rake db:migrate again. This will apply the project's database with the one from the new migration files. You will lose all data from that database though.