Rails 4 compatible simple in-memory database using ActiveModel