3 examples for rails
# generate a new model Person with fields firstname and lastname of type string
rails g model Person firstname:string lastname:string
# create a model migration for Candy with fields name of type string and quantity of type integer
rails g migration Candy name:string quantity:integer