必要ファイル、コードすべて作成 rails g scaffold リソース名 カラム名:データ型 カラム名:データ型 .... rails g scaffold Post title:string body:text rails db:migrate