Generating the Rails Application
Walk through how to generate a Ruby on Rails application, while setting the default database to be PostgreSQL
Guide Tasks
  • Read Tutorial
  • Watch Guide Video
Video locked
This video is viewable to users with a Bottega Bootcamp license

Let's get started with the code. Open up your terminal and type the following code to create your application.

rails new Overtime --database=postgresql

In this command, I'm asking Rails to create an application called Overtime and to use PostgreSQL as the database for this application. Otherwise, it will use the default database, which is SQL Lite.

large

When you press Enter, Rails will create the application for you and will include all the gems and libraries that you'll need. It should look like this.

large

Next, go into your Overtime directory and open the sublime editor or any other editor that you're comfortable with.

large

The first thing I'm going to do in the sublime editor is to change the README file. I'm going to change the extension to .md, and will delete all its contents. I'll then insert all that we discussed in the planning lesson.

large

That's it. In the next video, we'll see how to create a repository on github.

Resources