cartodb-4.29/db/migrate/20190517114808_add_default_salt.rb

23 lines
427 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
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
)