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

16 lines
380 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +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