3,765
回編集
差分
→generate
$ rails generate scaffold User name:string email:string password_digest:string remember_digest:string role:integer activation_digest:string activated:boolean activated_at:datetime reset_digest:string reset_sent_at:datetime
{{font color||yellow|migrationファイルを確認 indexを書く 以下同じ}}
% rails generate scaffold Note content:string user:references kind:integer meeting_time:integer role:integer note_line:integer