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

10 lines
244 B
Ruby

Sequel.migration do
up do
SequelRails.connection.run("CREATE INDEX geocodings_user_id_created_at ON geocodings(user_id, created_at)")
end
down do
SequelRails.connection.run("DROP INDEX geocodings_user_id_created_at")
end
end