1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #42408 from abhaynikam/update-active-storage-guide-about-num-tables

Update Active Storage guide about num migration added in setup [ci skip]
This commit is contained in:
Vipul A M 2021-06-06 20:40:02 +05:30 committed by GitHub
commit 0b07e33c10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.