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! While you're at it, check out some resources Treehouse students have shared here.

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

Ruby ActiveRecord Basics Migrations and Relationships Single Table Inheritance

Accessing a project, that I have already started.

Hi guys just need some guidance here please. Let's say I have to exit a project for whatever reason. When I got back to it later I go in the terminal re-enter the project i.e. cd biller/ go into mysql bring up the databases then switch to the databases that I was using. Now it's time to add to teh project I wasn't quite sure how to go about this so I opened a new tab in Terminal and ran ' rails new migrate Account". But apparently this was the wrong way to go about this as it started to generate a completely new project.

Should I just exit mysql once i've switched to the database that I want. Reload and keep going ? Or will "rails c" bring up what I need?

Thanks in advance!

2 Answers

Kang-Kyu Lee
Kang-Kyu Lee
52,045 Points

I think maybe you are talking about rails generate migration or want to do some command it shows when you rake db -T or, you can simply could rails console on your project folder already made. Or, do you might want to do rails new your_another_project --database=mysql? it's more like a question, not an answer. but hope it helps

Thanks kang yea it's a different perspective. I'm gonna definitely play with this some more soon.