Relativity adapter for ActiveRecord