Today I Learned

A Hashrocket project

Rails 6 - Database preparation

There’s a new way to initialize a database in Rails 6!

rails db:prepare

This checks to see if your databases have already been created and if so will run db:migrate otherwise db:setup.

Looking for help? Hashrocket has been an industry leader in Ruby on Rails since 2008. Rails is a core skill for each developer at Hashrocket, and we'd love to take a look at your project. Contact us and find out how we can help you.