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

16 lines
463 B
Ruby

require 'carto/db/migration_helper'
include Carto::Db::MigrationHelper
migration(
Proc.new do
# The 0 value means: "apply default render timeouts" (defined by the tiler)
add_column :users, :user_render_timeout, :integer, default: 0, null: false
add_column :users, :database_render_timeout, :integer, default: 0, null: false
end,
Proc.new do
drop_column :users, :user_render_timeout
drop_column :users, :database_render_timeout
end
)