Yii Migration Like Ruby On Rails Command


i saw Yii is completely related like ruby on rails ,

in there is any technology like,Ruby on Rails migration.

i saw Yii has also migration ,

but is it like same ruby on rails?


if i want to create a model scaffold from command in rails

i use :

rails g scaffold User title:string content:text date:date


rake db:migrate

then a table created like ‘users’.

Yii also same migration script like self_up,self_down

so all are similar,so i think migration technique is also will be same.

can anyone give me idea…

In Yii you first create a migration using a command, then edit the generated file, then apply the migration. So it is almost the same as in Rails.

See here: http://www.yiiframework.com/doc/guide/1.1/en/database.migration#creating-migrations