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

15 lines
361 B
Ruby

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
)