mongoid/mongoid — pull request #2988 by johnnyshields (2013-04-20 03:52:17+00:00)
Title: Fix for validates_uniqueness with aliased fields

I discovered that the below does not work, it yields a false positive :warning:

```ruby
field :n, as: name, type: String

validates_uniqueness_of :name
```

I've patched this behavior and have added specs for it.

Also includes small commits:
- Add Rubymine to .gitignore
- Adding #field_t and #field_t= alias methods for #field_translations + specs