Got rid of active_record dependencies and replaced it for railtie.