回答編集履歴
1
ActiveStorageについて説明を追加
test
CHANGED
@@ -11,3 +11,27 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
[https://www.postgresql.jp/document/9.4/html/datatype-binary.html](https://www.postgresql.jp/document/9.4/html/datatype-binary.html)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
----
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
Herokuで外部ストレージサービスを利用して画像ファイルを扱うには、Rails 5.2以降であれば標準でついているActiveStorageを使うのが手っ取り早そうです。
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
- [Active Storage の概要 | Railsガイド](https://railsguides.jp/active_storage_overview.html)
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
Herokuの公式サイトでも、previewも扱えるようにフォロー記事が用意されています。
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
- [Active Storage on Heroku](https://devcenter.heroku.com/articles/active-storage-on-heroku)
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
Qiita等にも記事があると思うので、参考にしてみてください。
|