Allow Rails 4
Change property declarations to a mapping declaration to allow auto-creation of index