Rails Migration to make a column null => true

migration, ruby-on-rails-3

Solution

Try:

change_column :table_name, :email, :string, null: true

Problem

I had originally created a table with column as ``` t.string "email", :default => "", :null => false ``` The requirement has changed and now I need to allow email to be null. How can I write a migration to make :null => true

Original source

Related problems