Creating a new Rails project that uses PostgreSQL

by Jason Swett,

To create a new Rails project that uses PostgreSQL, simply add --database=postgresql to the end of the command:

$ rails new my_project --database=postgresql

[xyz-ihs snippet=”rails-tips-opt-in”]

Leave a Reply

Your email address will not be published. Required fields are marked *