My Rails Issue.,CSV file import and db:migrate

Here is the scene that I had been struggling with., ROR has a special command for migrating a table., I have a heavy csv file that has some 10-15 columns. Intention was to table that information and store it in a database. I have been religiously following Ryan Bates ROR tutorial for importing CSV files to the system.,

My initial table was something like this:

class CreateColleges < ActiveRecord::Migration
def change
create_table :colleges do |t|
t.integer :unitid
t.string addr :instnm
t.float :lonitud
t.float :longitud

t.timestamps
end
end
end

I realized there were some 10 columns that I had missed out in this initial scaffold., So I had to tweak the table to accommodate something like this

class CreateColleges < ActiveRecord::Migration
def change
create_table :colleges do |t|
t.integer :unitid
t.string :instnm
t.string :addr
t.string :city
t.string :stabbr
t.string :zip
t.string :chfnm
t.string :chftitle
t.string :telephone
t.string :ein
t.string :opeid
t.string :webaddrs
t.string :adminurl
t.string :finaidurl
t.string :applurl

t.timestamps
end
end
end

For some reason I was not getting the table updated with above columns, Not sure what happened, the other command that I tried was the famous bundle update 

bundle update

Basically the command cleared the hicks and was able to update the new table structure.,

One other thing that I noticed from this tutorial is, when importing a CSV file., make sure the column headings that is in CSV matches with the column names of the table.  If in ruby file you are having something like this coded (in red)

class College < ActiveRecord::Base
attr_accessible :unitid, :instnm, :addr, :zip, :longitud, :latitude, :webaddr, :city, :stabbr

def self.import(file)
CSV.foreach(file.path, headers: true) do |row|
College.create! row.to_hash
end
end
end

please save yourself sometime knowing this.,