Converted Sandwich class to ActiveRecord model