aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_storage_overview.md
diff options
context:
space:
mode:
Diffstat (limited to 'guides/source/active_storage_overview.md')
-rw-r--r--guides/source/active_storage_overview.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md
index ec90e44358..d9f5aa8385 100644
--- a/guides/source/active_storage_overview.md
+++ b/guides/source/active_storage_overview.md
@@ -41,9 +41,6 @@ application to Rails 5.2, run `rails active_storage:install` to generate a
migration that creates these tables. Use `rails db:migrate` to run the
migration.
-You need not run `rails active_storage:install` in a new Rails 5.2 application:
-the migration is generated automatically.
-
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`:
@@ -96,6 +93,15 @@ local:
root: <%= Rails.root.join("storage") %>
```
+Optionally specify a host for generating URLs (the default is `http://localhost:3000`):
+
+```yaml
+local:
+ service: Disk
+ root: <%= Rails.root.join("storage") %>
+ host: http://myapp.test
+```
+
### Amazon S3 Service
Declare an S3 service in `config/storage.yml`: