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.
This commit is contained in:
Abhay Nikam 2021-06-06 19:24:02 +05:30
parent 0c1ed54a2a
commit d15e6ed76a
1 changed files with 3 additions and 2 deletions

View File

@ -35,8 +35,9 @@ files.
## Setup
Active Storage uses two tables in your applications database named
`active_storage_blobs` and `active_storage_attachments`. After creating a new
Active Storage uses three tables in your applications 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.