todo with activerecords