cartodb-4.42/db/migrate/20190517114808_add_default_salt.rb
2024-04-06 05:25:13 +00:00

23 lines
427 B
Ruby

require 'carto/db/migration_helper'
include Carto::Db::MigrationHelper
migration(
Proc.new do
alter_table(:users) do
set_column_default :salt, ''
end
alter_table(:user_creations) do
set_column_default :salt, ''
end
end,
Proc.new do
alter_table(:users) do
set_column_default :salt, nil
end
alter_table(:user_creations) do
set_column_default :salt, nil
end
end
)