ruby - How to alter the default value of a column in a Sequel migration? -


i have user table. i'm trying change default integer value of column 0 1.

so far, method can come dropping , adding column updated default in separate migration. don't want have this, because lose data in pre-existing tables. haven't been able find answer online.

is there sequel way this?

how set_column_default?

alter_table :foo   set_column_default :bar, 1 end 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -