mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 19:30:42 +08:00
bb0c2813ac
FIX: keep the "uploading..." indicator until the server replies via the MessageBus FIX: text was disapearing when uploading an avatar PERF: always use a region for S3 (defaults to 'us-east-1') FEATURE: ApplyCDN middleware when using S3 FIX: use the same pattern to store files on S3 and locally PERF: keep a local cache of uploads when generating thumbnails FEATURE: migrate_to_s3 rake task
14 lines
252 B
Ruby
14 lines
252 B
Ruby
class SetDefaultS3Region < ActiveRecord::Migration
|
|
def up
|
|
execute <<-SQL
|
|
UPDATE site_settings
|
|
SET value = 'us-east-1'
|
|
WHERE name = 's3_region'
|
|
AND LENGTH(COALESCE(value, '')) = 0
|
|
SQL
|
|
end
|
|
|
|
def down
|
|
end
|
|
end
|