You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
443 B
17 lines
443 B
Sequel.migration do
|
|
no_transaction # indexes need to be created outside of the transaction
|
|
|
|
# This index is used for metrics gathering per database host. See #10115
|
|
up do
|
|
SequelRails.connection.run %{
|
|
CREATE INDEX CONCURRENTLY "users_database_host_index" ON "users" ("database_host");
|
|
}
|
|
end
|
|
|
|
down do
|
|
SequelRails.connection.run %{
|
|
DROP INDEX CONCURRENTLY IF EXISTS "users_database_host_index";
|
|
}
|
|
end
|
|
end
|