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
Post a Comment