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 trialAndrew Schrenk
11,557 PointsWhen you generate the new table, why doesn't the migration happen automatically?
Why does ruby not do the migrate automatically? Just curious.
Thanks,
Andy
2 Answers
Jay McGavren
Treehouse TeacherNot sure why it doesn't run automatically in dev. I know in production, special care is needed surrounding migrations (see https://www.tintup.com/blog/automatic-rails-migrations-in-production-yes-or-no/), and the Rails team may have just applied that same logic to dev.
Andrew Schrenk
11,557 PointsThanks for the answer, Jay! It gives one something to think about, especially in the future when working on schema in large databases. Does Treehouse use MySQL?
Jay McGavren
Treehouse TeacherWe do, but personally, if I were starting over from scratch I'd have used PostgreSQL. Regardless, both options should be evaluated carefully for the project at hand.