cartodb/db/migrate/20150813102733_add_visualization_id_index_to_synchronizations.rb
2020-06-15 10:58:47 +08:00

14 lines
300 B
Ruby

Sequel.migration do
up do
SequelRails.connection.run(%Q{
CREATE INDEX synchronizations_visualization_id_idx ON synchronizations (visualization_id)
})
end
down do
SequelRails.connection.run(%Q{
DROP INDEX IF EXISTS synchronizations_visualization_id_idx
})
end
end