def self.up
    if ActiveRecord::Base.connection.adapter_name == "PostgreSQL"
      execute 'create index users_lower_email_index on users(lower(email))'
    end