cartodb-4.42/db/migrate/20161019130218_add_style_to_widgets.rb

17 lines
267 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
alter_table :widgets do
add_column :style, :json, null: true
end
end,
Proc.new do
alter_table :widgets do
drop_column :style
end
end
)