cartodb-4.42/db/migrate/20161104141744_builder_enabled_by_default.rb

15 lines
361 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
require 'carto/db/migration_helper'
include Carto::Db::MigrationHelper
migration(
Proc.new do
set_column_default :organizations, :builder_enabled, true
set_column_default :users, :builder_enabled, true
end,
Proc.new do
set_column_default :organizations, :builder_enabled, false
set_column_default :users, :builder_enabled, false
end
)