ActiveRecord 4.X support