差分

Tep8

10 バイト追加, 2023年6月6日 (火) 10:25
company
application.register("hello", HelloController)</nowiki>
== company container == rails generate scaffold Company Container name:string
関連付け
% bin/rails generate migration add_company_reference_to_users add_container_reference_to_users company:references
% bin/rails generate migration add_note_reference_to_name_list note:references
nullを許可する
add_reference :users, :companycontainer, foreign_key: true belongs_to :companycontainer, optional: true
bin/rails db:drop db:create db:migrate