提交 0f969a98 编写于 作者: Y Yves Senn

Merge pull request #12349 from odigity/master

added "id: false" to HABTM join table example [ci skip]
......@@ -340,7 +340,7 @@ class CreateAssembliesAndParts < ActiveRecord::Migration
t.timestamps
end
create_table :assemblies_parts do |t|
create_table :assemblies_parts, id: false do |t|
t.belongs_to :assembly
t.belongs_to :part
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册