Applications are open for the Product College - Apply Now

X

Lets create the Memo model with the following specifications:

  • title: string
  • date: date
  • text_body: text

Creating the Memo model

Lets create the Memo model.

Since you have practiced creating the User model. Try to create the Memo model from the specifications above.

Solution

rails generate model Memo title:string date:date text_body:text

Don't forget to run rails db:migrate after generating the model

Feedback

If you have feedback on this tutorial or find any mistakes, please open issues on the GitHub Repository or comment below.

Summer academy

An iOS Development Summer Course

Design, code and launch your own app. Locations in San Francisco and Asia

Find your location

Product College

A computer science college

Graduate into a successful career as a founder or software engineer.

Learn more