title: PG::DatatypeMismatch: ERROR: argument of WHERE must be type boolean, not type integer
body: <p>I am getting this error in the Production site and this is the code in my views</p>
  
  <pre><code>&lt;%= form_for [:admin, @course], :remote =&gt; true do |f| %&gt;
    &lt;%= f.label :name %&gt;
    &lt;%= f.text_field :name %&gt;
    &lt;%= f.label :duration %&gt; 
    &lt;%= f.number_field :duration, class: "input-md form-control mb-20"%&gt; 
    &lt;%= f.label :program_id %&gt; 
    &lt;%= f.collection_select :program_id, Program.where('id'), :id, :name, {}, {class: "input-md form-control mb-20" } %&gt;
  &lt;%end%&gt;
  </code></pre>
  
  <p>This works in my local server where i have sql db setup.</p>
  
  <pre><code>Program model
       has_many :courses 
  </code></pre>
  
  <p>can anyone guide me?</p>