Re: add to migration not working (Rails 2.0.2)

Jabbslad
2008-02-28T19:41:45Z

I just tried the exact same and it worked for me, i wonder if ur
schema/db is in a bad state. Try:-

rake db:migrate:reset

Then try running the migrations again.

Dave Amos wrote:
> Hi there,
>
> I just generated a migration to add a column to a table, and the change
> didn''t seem to take. I did:
>
> script/generate migration add_starts_at_to_gameweek starts_at:datetime
>
> which generated the file, no problem. I then ran:
>
> rake db:migrate
>
> and the migration didn''t happen. The table is still without a
> "starts_at" column. Where should I start looking for mistakes?
>
> Dave
> --
> Posted via http://www.ruby-forum.com/.