cartodb/db/migrate/20190517114808_add_default_salt.rb
2020-06-15 10:58:47 +08: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
)