create and mod table with activerecord