rails generate model with index code example Example: rails g model $ rails generate model Article title:string text:text