> On Sun, Apr 6, 2008 at 9:50 PM, Mohammed Firdaus
> <[EMAIL PROTECTED]> wrote:
> > I'm using sqlite.
> >
> > It seems to be renaming the column and adding it again as seen in
> the
> > output below but as far as I can tell there are no errors during
> > migration.
> >
> > == ConvertTodoToStateMachine: migrating
> =======================================
> > -- add_column(:todos, :state, :string, {:null=>false,
> > :default=>"immediate", :limit=>20})
> > -> 0.0477s
> > -- rename_column(:todos, :completed, :completed_at)
> > -> 1.8018s
> > -- remove_column(:todos, :done)
> > -> 1.9843s
> > -- remove_column(:todos, :type)
> > -> 1.5375s
> > == ConvertTodoToStateMachine: migrated (20.8127s)
> =============================
> >
This is strange. The column is renamed without errors. Could you check in
the
database before and after what happens to the completed column (before) and
the completed_at column (after). There should be dates in the completed
column (before) which should be copied to the completed_at column (after).
You can also try to run rake with --trace. Perhaps there is more information
in
The console then
> > -- add_column(:projects, :completed_at, :datetime)
Indeed the project table :-)
Reinier
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss