3 examples for rails

{{ score }}
  # create a new project name 'myapp' with all default settings

rails new myapp
        
{{ score }}
  # generate a new model Person with fields firstname and lastname of type string
rails g model Person firstname:string lastname:string
        
{{ score }}
  # 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