```ruby
class AddEmailUniquenessIndex < ActiveRecord::Migration
  def change
  end
end
```

Add Unit test validation User
user
```ruby
class AddEmailUniquenessIndex < ActiveRecord::Migration
  def change
    add_index :users, :email, :unique => true
  end
end
```
assistant