差分

Tep8

219 バイト追加, 2023年6月2日 (金) 13:13
user
bin/rails generate devise User
bin/rails db:migrate
 
<nowiki>def after_sign_in_path_for(resource)
notes_path
end</nowiki>
 
== company ==
% rails generate model Company name
関連付け
% bin/rails generate migration add_note_reference_to_name_list noteadd_company_reference_to_notes company:references % bin/rails generate migration add_note_reference_to_users 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