add initialization of activerecord