rails 5.2 generate model code example
Example 1: rails g model
$ rails generate model Article title:string text:text
Example 2: rails controller generator
$ rails generate controller Welcome index
$ rails generate model Article title:string text:text
$ rails generate controller Welcome index