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

16 lines
380 B
Ruby

Sequel.migration do
no_transaction # indexes need to be created outside of the transaction
up do
SequelRails.connection.run %{
CREATE INDEX CONCURRENTLY "visualizations_state_id_index" ON "visualizations" ("state_id");
}
end
down do
SequelRails.connection.run %{
DROP INDEX CONCURRENTLY IF EXISTS "visualizations_state_id_index";
}
end
end