cartodb-4.29/db/migrate/20161130102840_add_conf_to_legends.rb
2020-06-15 10:58:47 +08:00

13 lines
225 B
Ruby

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
)