aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRafael França <rafael@franca.dev>2019-07-24 15:45:43 -0400
committerGitHub <noreply@github.com>2019-07-24 15:45:43 -0400
commit96289cfb9b6aeb8f1a917f892148fd47f2f2049a (patch)
tree230ce597df7abf9a87e7ae847d9050526e1003d5 /guides
parent8013cc02cb8f372324e7383d05862048aa8292d9 (diff)
parentd032842fc4504252ce4d7d03cea2f9ae486aaa90 (diff)
downloadrails-96289cfb9b6aeb8f1a917f892148fd47f2f2049a.tar.gz
rails-96289cfb9b6aeb8f1a917f892148fd47f2f2049a.tar.bz2
rails-96289cfb9b6aeb8f1a917f892148fd47f2f2049a.zip
Merge pull request #36562 from colszowka/patch-1
Add warning about using UUIDs with activestorage
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_storage_overview.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md
index 46263e552a..54f8f5c2b5 100644
--- a/guides/source/active_storage_overview.md
+++ b/guides/source/active_storage_overview.md
@@ -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`: