Add classes
Goal
- Add two classes to the diagram as follows:
Steps
- Add
User
class:
- Add
email
attribute of type string
.
- Add
encrypted_password
attribute of type string
.
- Add
BlogPost
class:
- Add
title
attribute of type string
.
- Add
body
attribute of type text
.
Reference Code