「Tep8」を編集中
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
201行目: | 201行目: | ||
notes_path | notes_path | ||
end</nowiki> | end</nowiki> | ||
+ | |||
+ | == company == | ||
+ | % rails generate model Company name | ||
+ | |||
+ | 関連付け | ||
+ | % bin/rails generate migration add_company_reference_to_notes company:references | ||
+ | % bin/rails generate migration add_company_reference_to_users company:references | ||
+ | % bin/rails generate migration add_note_reference_to_name_list note:references | ||
+ | |||
+ | bin/rails db:drop db:create db:migrate | ||
+ | |||
+ | % rails generate controller Companies new create |