 After the German Revolution of 1918-19 he was a Minister without portfolio in the government of Philipp Scheidemann, before becoming Minister of the Interior in June 1919 in the succeeding government headed by Gustav Bauer.David remained in that position until October of that year.David was also briefly the first president of the Weimar National Assembly which drew up the Weimar Constitution and ratified the Treaty of Versailles in 1919.