Skip to content

Commit bc69cd1

Browse files
committed
Merge branch 'migrate_ruby_3.1.0' into develop
2 parents ba9b73d + 56a123a commit bc69cd1

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

config/environments/production.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,6 @@
7979

8080
# Do not dump schema after migrations.
8181
config.active_record.dump_schema_after_migration = false
82+
83+
config.active_storage.service = :local
8284
end

config/storage.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# config/storage.yml
2+
test:
3+
service: Disk
4+
root: <%= Rails.root.join("tmp/storage") %>
5+
6+
local:
7+
service: Disk
8+
root: <%= Rails.root.join("storage") %>
9+
10+
# Example for cloud storage (e.g., Amazon S3)
11+
# amazon:
12+
# service: S3
13+
# access_key_id: <%= ENV["AWS_ACCESS_KEY_ID"] %>
14+
# secret_access_key: <%= ENV["AWS_SECRET_ACCESS_KEY"] %>
15+
# region: us-east-1
16+
# bucket: your-bucket-name

0 commit comments

Comments
 (0)