Adding active record plugin