cartodb-4.42/db/migrate/20161130102840_add_conf_to_legends.rb

13 lines
225 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
add_column :legends, :conf, :json, null: false, default: '{}'
end,
Proc.new do
drop_column :legends, :conf
end
)