title: Keeping test and development databases in sync with rake
body: <p>Using Rails 4.2, I want to add an age field to my <code>User</code> ActiveRecord class in a Postgres database using this line in a migration:</p>
  
  <pre><code>add_column :users, :age, :integer
  </code></pre>
  
  <p>then I obviously ran <code>bin/rake db:migrate</code>. Later I decided to make this a <code>string</code> field so rolled the migration back and changed the migration like so:</p>
  
  <pre><code>add_column :users, :age, :string
  </code></pre>
  
  <p>and migrated again. All was fine in my development database, but my test database seemed to have retained the old datatype. This is what I got using <code>psql</code> and running <code>select column_name, data_type from information_schema.columns where table_name = 'users';</code></p>
  
  <p>In development:</p>
  
  <pre><code>age          | character varying
  </code></pre>
  
  <p>In test:</p>
  
  <pre><code>age          | integer
  </code></pre>
  
  <p>Is this intentional or a bug?</p>