2018-12-23 12:14:25 +05:30
|
|
|
class FillMissingUuidOnApplicationSettings < ActiveRecord::Migration[4.2]
|
2017-08-17 22:00:37 +05:30
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
|
|
|
execute("UPDATE application_settings SET uuid = #{quote(SecureRandom.uuid)} WHERE uuid is NULL")
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
end
|
|
|
|
end
|