10 lines
232 B
Ruby
10 lines
232 B
Ruby
class FillMissingUuidOnApplicationSettings < ActiveRecord::Migration[4.2]
|
|
DOWNTIME = false
|
|
|
|
def up
|
|
execute("UPDATE application_settings SET uuid = #{quote(SecureRandom.uuid)} WHERE uuid is NULL")
|
|
end
|
|
|
|
def down
|
|
end
|
|
end
|