You have a column on one of your database tables with a default value. You'd like to remove the default value. Removing the default is the same as setting it to nil. You can do this with the ActiveRecord DSL using the change_column_default method.
nil
change_column_default
def change change_column_default :users, :age, nil end
See the docsarrow-up-right for more details.
Last updated 4 years ago