Check out example codes for "rails g migration remove default". It will help you in understanding the concepts better.

Code Example 1

change_column_default(:users, :email, nil)

Learn ReactJs, React Native from akashmittal.com