mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-20 12:32:39 -05:00
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
|