title: ruby on rails undefined method(s) for active record
body: <pre><code>(in /Users/sayedgamal/apps/test)
  /Users/sayedgamal/apps/test/config/boot.rb:20:Warning: Gem::SourceIndex#search support for String patterns is deprecated
  == CreatePeople: migrating ====================================================
  -- create_table(:people)
  rake aborted!
  undefined method `string' for #&lt;ActiveRecord::ConnectionAdapters::TableDefinition:0x238e97c&gt;
  
  (See full trace by running task with --trace)
  </code></pre>
  
  <p>I get that error when I'm issuing the </p>
  
  <blockquote>
    <p>rake db:migrate</p>
  </blockquote>
  
  <p>command .. in the root folder of my rails project ..</p>
  
  <blockquote>
  <pre><code>migrate/001_create_people.rb contents :
  </code></pre>
  </blockquote>
  
  <pre><code>class CreatePeople &lt; ActiveRecord::Migration
    def self.up
      create_table :people do |t|
       t.string :first_name
       t.string :second_name
       t.string :company
       t.string :email
       t.string :phone
      end
    end
  
    def self.down
      drop_table :people
    end
  end
  </code></pre>
  
  <p>Note: that I also used the integer and text fields and it didn't work ..
  Error always changes to undefined datatype {string, integer, text ,...}
  based on the typed in the migration file .. !
  Note: I'm using the rake db:migrate in the root folder of the app.</p>