title: unknown attribute: user_id
body: <p>I'm getting the error unknown attribute: user_id durring execution of current_user.stories.build</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    has_many :stories, class_name: 'Story', foreign_key: 'user_id', dependent: :destroy
    ...
  
  class Story &lt; ActiveRecord::Base
    belongs_to :user, class_name: 'User', foreign_key: 'user_id'
    ...
  </code></pre>
  
  <p>schema.rb</p>
  
  <pre><code>create_table "stories", :force =&gt; true do |t|
      t.string   "responsible"
      t.string   "descr"
      t.string   "state"
      t.datetime "created_at",  :null =&gt; false
      t.datetime "updated_at",  :null =&gt; false
    end
  
    create_table "users", :force =&gt; true do |t|
      t.string   "email"
      t.string   "password_digest"
      t.datetime "created_at",      :null =&gt; false
      t.datetime "updated_at",      :null =&gt; false
      t.string   "name"
    end
  </code></pre>
  
  <p>It doesn't contain 'user_id' field. Any ideas?</p>