title: Rails migration t.belongs_to :user, add custom column name seller_id?
body: <p>I am trying to add seller_id to my items model in a migration by doing the following:</p>
  
  <p><code>rails g model Item title:string description:text price:bigint status:integer published_date:datetime seller:belongs_to</code></p>
  
  <p>This didn't work of course...</p>
  
  <p>ultimately I want to see seller_id in my items table, which relates the item model to the user model.</p>
  
  <p>Presently my migration looks like this:</p>
  
  <pre><code>class CreateItems &lt; ActiveRecord::Migration
    def change
      create_table :items do |t|
        t.string :title
        t.text :description
        t.bigint :price
        t.integer  :status
        t.datetime :published_date
        t.belongs_to :user, index: true, foreign_key: true
        t.timestamps null: false
      end
    end
  end
  </code></pre>
  
  <ol>
  <li><p>How can I modify this migration to create a foreign key "seller_id" that relates to the user model.</p></li>
  <li><p>How can I auto generate a migration that includes edits from 1., from the console? I.E modify the rails g model ... to generate the migration I need.</p></li>
  </ol>
  
  <p>Huge Thanks!</p>