$ rails generate scaffold order name:string address:text email:string pay_type:string, $ rails g migration add_order_id_to_line_item order_id:integer, and several modification.