From bc6d220fb6f54edbd50262968f32c2505c5c3028 Mon Sep 17 00:00:00 2001 From: Valentin Ryabov Date: Tue, 16 Feb 2016 14:26:35 +0500 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 325f420..fd65aa9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Model updates history stored in DB ================================== -Save model updates history to db +Extension is automatically saves all ActiveRecords inserts, updates and deletes at table `{{%models_history}}` Installation ------------ @@ -21,11 +21,15 @@ or add to the require section of your `composer.json` file. +Then apply migration: + +``` +php yii migrate --migrationPath="@vendor/qvalent/yii2-models-history/migrations" +``` Usage ----- -Once the extension is installed, simply use it in your code by : +No other steps required. Extension is working now, you can test it by update some project ActiveRecord and see updates in `{{%models_history}}`. -```php -``` \ No newline at end of file +Feel free to create issues if something is wrong.