Sequel.migration do
  change do
    alter_table :widgets do
      add_column :style, :json, null: false, default: '{}'
    end
  end
end

require 'carto/db/migration_helper'

include Carto::Db::MigrationHelper

migration(
  Proc.new do
    alter_table :widgets do
      add_column :style, :json, null: false, default: '{}'
    end
  end,
  Proc.new do
    alter_table :widgets do
      drop_column :style
    end
  end
)

Rewrite widgets style migration to use new helper
Rewrite widgets style migration to use new helper
