mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #36562 from colszowka/patch-1
Add warning about using UUIDs with activestorage
This commit is contained in:
commit
96289cfb9b
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ tables. Use `rails db:migrate` to run the migration.
|
|||
|
||||
WARNING: `active_storage_attachments` is a polymorphic join table that stores your model's class name. If your model's class name changes, you will need to run a migration on this table to update the underlying `record_type` to your model's new class name.
|
||||
|
||||
WARNING: If you are using UUIDs instead of integers as the primary key on your models you will need to change the column type of `record_id` for the `active_storage_attachments` table in the generated migration accordingly.
|
||||
|
||||
Declare Active Storage services in `config/storage.yml`. For each service your
|
||||
application uses, provide a name and the requisite configuration. The example
|
||||
below declares three services named `local`, `test`, and `amazon`:
|
||||
|
|
Loading…
Reference in a new issue