In my rails application, there is a table with 'id' column default value set to 0. I want to drop this default value and make this column auto-increment again. I have tried
change_column_default(:table_name, :id, nil)
but it doesn't seem to work on primary key such as 'id'