I am new to RoR. I have started a new project and have successfully
used migrations to create new tables.
I now want to add a column and have followed the steps outlined in
“Agile with Rails”:
ruby script/generate migration add_page_title
I open the latest file in migration directory and write and save the
class AddPageTitle < ActiveRecord::Migration
add_column :contents, :page_title, :string
remove_column :contents, :page_title
- rake db:migrate
All I get is the echo back (in c:/work/fab1). The table name is
- the schema file that I have open says it has changed and do I want
to reload it so I click yes but of course there is no change as the
rake did nothing.
So I am confused as to why nothing is happening. I have also tried to
add a new table but no luck with that either.
As a last resort I rebooted in the vain hope that it would magically
sort itself but that hasn’t worked.
So any suggestions as to what might be going wrong or what I might be
doing incorrectly would be gratefully received.