rails g resource references code example
Example 1: rails generation references
rails g model Review article:references
Example 2: rails g model references
rails generate model Micropost user:references
rails g model Review article:references
rails generate model Micropost user:references