title: Ruby on Rails: adding columns to existing database
body: <p>I'm getting an error:</p>
  
  <pre><code>SQLite3::SQLException: no such column: ideas.list_id: 
  SELECT "ideas".* FROM "ideas"  
  WHERE "ideas"."list_id" = 2
  </code></pre>
  
  <p>But I added </p>
  
  <p><code>t.integer :list_id</code></p>
  
  <p>to my db migration file:</p>
  
  <pre><code>class CreateIdeas &lt; ActiveRecord::Migration
    def change
      create_table :ideas do |t|
        t.string :name
        t.text :description
        t.string :picture
  
        t.timestamps
      end
      add_foreign_key :ideas, :lists
    end
  end
  </code></pre>
  
  <p>which gave me this:</p>
  
  <pre><code>class CreateIdeas &lt; ActiveRecord::Migration
    def change
      create_table :ideas do |t|
        t.string :name
        t.text :description
        t.string :picture
        t.integer :list_id
        t.timestamps
      end
      add_foreign_key :ideas, :lists
    end
  end
  </code></pre>
  
  <p>and then I typed</p>
  
  <pre><code>rake db:migrate
  </code></pre>
  
  <p>Any idea why I would be getting an error saying there's no column? I'm still new to RoRs. Do I have to add a column some other way?</p>
  
  <p>Thanks</p>