Not sure if this is a bug or by design. But I am unable to use an active record model in a migration against the non default database
I’m trying to run the migrations against a test database. But if I call
The model always uses the default database, not the database provided with
yiic migrate --connectionID=testdb
I’m thinking you’re not supposed to use active records in migrations by use the provided SQL query help functions?
But I found this post http://www.yiiframework.com/forum/index.php/topic/15905-test-data-in-db-migration/page__p__78981#entry78981 that seems to suggest that using an active record in a migration is fine?