cartodb-4.29/db/migrate/20160824084904_add_state_id_index_to_visualizations.rb

16 lines
380 B
Ruby
Raw Permalink Normal View History

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