Changed column from events table from type to event_type. Some rails convention was broken.