From d15e6ed76a68f178fa94650e84d1611f6061b38f Mon Sep 17 00:00:00 2001 From: Abhay Nikam Date: Sun, 6 Jun 2021 19:24:02 +0530 Subject: [PATCH] Update Active Storage guide about num migration added in setup Active Storage now tracks variants in the database by defaults and adds a table `active_storage_variant_records`. This PR updates the documentation to make it clear. --- guides/source/active_storage_overview.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md index b7ecd2c67c..397d3cd937 100644 --- a/guides/source/active_storage_overview.md +++ b/guides/source/active_storage_overview.md @@ -35,8 +35,9 @@ files. ## Setup -Active Storage uses two tables in your application’s database named -`active_storage_blobs` and `active_storage_attachments`. After creating a new +Active Storage uses three tables in your application’s database named +`active_storage_blobs`, `active_storage_variant_records` +and `active_storage_attachments`. After creating a new application (or upgrading your application to Rails 5.2), run `bin/rails active_storage:install` to generate a migration that creates these tables. Use `bin/rails db:migrate` to run the migration.