mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 16:43:40 +08:00
14 lines
257 B
Ruby
14 lines
257 B
Ruby
class SetDefaultS3Region < ActiveRecord::Migration[4.2]
|
|
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
|