title: Attribute saved in development but not in production
body: <p>I have the following helper method:</p>
  
  <pre><code>def parse_potential_followers(params)
    t_id = TestSet.where(:test_name =&gt; params[:test_set][:test_name]).pluck(:id)[0].to_i
    screen_names = params[:potential_followers].first[1].split("\n").reject(&amp;:blank?)
    screen_names.each do |s|
      potential_follower = PotentialFollower.new(
        :screen_name =&gt; s,
        :test_sets_id =&gt; t_id,
        :status =&gt; 'new',
        :slug =&gt; generate_slug([t_id.to_s, s])
      )
      potential_follower.save
    end
  end
  </code></pre>
  
  <p>The problem is that when I call this method, the test_sets_id is skipped when data is inserted in the table in the development environment, but not in the production environment. The three other attributes are saved fine.</p>
  
  <p>All the attributes are defined in the potential_followers table.</p>
  
  <p>I also have all the attributes in the potential_follower_params method in the potential_followers_controller.rb:</p>
  
  <pre><code>def potential_follower_params
    params.require(:potential_follower).permit(:screen_name, :test_sets_id, :connections, :status,
      :slug, :created_at, :updated_at)
  end
  </code></pre>
  
  <p>test_sets_id is defined as an integer in the table. I even tried harcoding the value of t_id:</p>
  
  <pre><code>t_id = 12
  </code></pre>
  
  <p>But it still would not work in production.  </p>
  
  <p>Here's what's in the models/potential_follower.rb:</p>
  
  <pre><code>class PotentialFollower &lt; ActiveRecord::Base
    belongs_to :TestSet
  end
  </code></pre>
  
  <p>Here's the method in test_sets_contoller.rb:</p>
  
  <pre><code>def create
      @test_set = TestSet.new(test_set_params)
      respond_to do |format|
          if @test_set.save
              parse_potential_followers(params)
              format.html { redirect_to @test_set, notice: 'Test set was successfully created.' }
              format.json { render :show, status: :created, location: @test_set }
          else
              format.html { render :new }
              format.json { render json: @test_set.errors, status: :unprocessable_entity }
          end
      end
  end
  </code></pre>
  
  <p>Any ideas?</p>