alter table spendings
  rename column amount_cents to amount_dollars;

alter table spendings
  alter column amount_dollars type numeric(12,2)
  using (amount_dollars / 100.0);
