This extension for yii framework 2 allows to attach custom field for any ActiveRecord model.
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist yiister/yii2-custom-field
or add
"yiister/yii2-custom-field": "dev-master"
to the require
section of your composer.json.
Go to the directory with your yii console bootstrap file and execute
./yii migrate --migrationPath=@yiister/cf/migrations