cartodb-4.42/db/migrate/20140303120018_add_index_on_geocodings.rb
2024-04-06 05:25:13 +00: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