femslash-city/migrations/109_add_email_lowercase_index.rb

10 lines
177 B
Ruby
Raw Permalink Normal View History

Sequel.migration do
up {
DB['CREATE INDEX sites_email_lower_index ON sites (LOWER(email))'].first
}
down {
DB['DROP INDEX sites_email_lower_index'].first
}
end