rails model attribute type doesn't get removed

NecroChat

New Member
I have a model "List" with an attribute called "description" of type string. Not a good idea so I want to change it to type text. However, I can't change it.I've done:\[code\]rails destroy model Listrake db:rollbackrake db:migrate\[/code\]I then re-declare the model with description of type text and do a rake db:migrate.Then I do:\[code\]rails cruby-1.9.2-p290 :002 > List => List(id: integer, name: string, popularity: string, vote_counter: integer, description: string, created_at: datetime, updated_at: datetime)\[/code\]As you can see, description is still of type string.I look in the migration and it's of type text.\[code\] def change create_table :lists do |t| t.string :name t.string :popularity t.integer :vote_counter t.text :description t.timestamps end end\[/code\]How do I actually change it to text?Thanks.
 
Back
Top