Check if table exists through active record