t.references in the migration vs belongs_to in the model?

后端 未结 0 1441
星月不相逢
星月不相逢 2021-02-11 19:31

I was reading the Rails Guides and I found these lines of code:

  class CreateComments < ActiveRecord::Migration
     def change
       create_table :comments         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题