How to update table column?

There is a table existed in sqlite3 database. I want to change a column
type in this table. I modified the file
db/migrate/20081229XXXX_create_project.rb and run “rake db:migrate”. But
it doesn’t update the table. How can I update the table with the new
definition.

Generally, don’t edit migrations. Instead, write a new one. See
rails.info for more details.

Regards,
Craig

On Wed, Dec 31, 2008 at 12:21 AM, Zhao Yi

Here’s a more specific URL:
rails.info .

Craig

On Wed, Dec 31, 2008 at 12:31 AM, Craig D.

Ramu wrote:

Write a migration file with current version + 1
ex:

say your version number in database 1024

then create migrate file 1025_job_name.rb
run migrate
On Wed, Dec 31, 2008 at 11:04 AM, Craig D.
[email protected]wrote:

Haven’t you switched to UTC timestamps migrations? That’s so easy to
handle.

And avoid editing manually your migrations, the only exception is if you
edit the last migration (if no data was added) and rollback then
remigrate, but in mot cases avoid it.

Write a migration file with current version + 1
ex:

say your version number in database 1024

then create migrate file 1025_job_name.rb
run migrate
On Wed, Dec 31, 2008 at 11:04 AM, Craig D.
[email protected]wrote:

rails.info for more details.

type in this table. I modified the file


Ramu