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

15 lines
250 B
Ruby

Sequel.migration do
up do
SequelRails.connection.run(%Q{
CREATE INDEX layers_parent_id_idx ON layers (parent_id)
})
end
down do
SequelRails.connection.run(%Q{
DROP INDEX IF EXISTS layers_parent_id_idx
})
end
end