3,765
回編集
差分
Tep8
,→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