I make field ENUM and the result is error when I use yii migrate/up on CMD windows.
yii migrate/up
public function up() { $tableOptions = null; if ($this-&
There is no enum() method at the moment since not every DB is supporting ENUM fields. You can do it manually though:
'social_media' => "ENUM('facebook', 'google', 'twitter', 'github')",
Note: This solution is for Mysql only
For related Postgresql content visit here