cartodb/db/migrate/20161130102840_add_conf_to_legends.rb

13 lines
225 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +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
)