github.com/Elate-DevOps/migrate/v4@v4.0.12/database/cockroachdb/examples/migrations/1285849751_add_index_on_user_emails.up.sql (about) 1 CREATE UNIQUE INDEX IF NOT EXISTS users_email_index ON users (email); 2 3 -- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean sed interdum velit, tristique iaculis justo. Pellentesque ut porttitor dolor. Donec sit amet pharetra elit. Cras vel ligula ex. Phasellus posuere.