title: ActiveRecord::UnknownAttributeError (unknown attribute: authorname):
body: <p>I am having a some trouble on my heroku-server. Not getting this problem locally:</p>
  
  <pre><code>2014-07-23T16:59:23.249055+00:00 app[web.1]: ActiveRecord::UnknownAttributeError (unknown attribute: authorname):
  2014-07-23T16:59:23.249058+00:00 app[web.1]:   app/controllers/chapters_controller.rb:5:in `create'
  </code></pre>
  
  <p>My controller:</p>
  
  <pre><code>class ChaptersController &lt; ApplicationController
  
      def create
          @story = Story.find(params[:story_id])
          @chapter = @story.chapters.create(chapter_params)
          redirect_to story_path(@story)
      end
  
      def destroy
          @story = Story.find(params[:story_id])
          @chapter = @story.chapters.find(params[:id])
          @chapter.destroy
          redirect_to story_path(@story)
      end
  
      def upvote
          @chapter = Chapter.find(params[:id])
          @chapter.votes.create
          redirect_to(:back)
      end
  
      private
          def chapter_params
              params.require(:chapter).permit(:round, :author, :authorname, :body)
          end
  end
  </code></pre>
  
  <p>I have just added authorname with</p>
  
  <pre><code>rails g migration add_authorname_to_chapter authorname:string
  </code></pre>
  
  <p>What am I missing?</p>
  
  <p>Edit, adding schema info:
  ActiveRecord::Schema.define(version: 20140723154333) do</p>
  
  <pre><code>  create_table "chapters", force: true do |t|
      t.string   "round"
      t.string   "author"
      t.text     "body"
      t.integer  "story_id"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.string   "authorname"
    end
  </code></pre>