mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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:
parent
0c1ed54a2a
commit
d15e6ed76a
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue