media_entries of media_resources switches the type in rails aware manner