The model creation command is ** rails g model model name (singular, capital letters) Column name 1: Data type Column name 2: Data type… **
Example:
rails g model User name:string email:string
Apply migration file after command execution
#### **`migrate`**
```rails db
# Model deletion
The command to delete the model
** rails destroy model model name **
Example:
```rails destroy model user ```
** * It is not possible to omit destroy and write d **
Recommended Posts