Sequel.migration do up do alter_table :visualizations do drop_column :country_codes end end down do SequelRails.connection.run(%{ ALTER TABLE "visualizations" ADD COLUMN country_codes text[] }) end end