Rails Migration to make a column null => true -
i had created table column as
t.string "email", :default => "", :null => false the requirement has changed , need allow email null. how can write migration make :null => true
try:
change_column :table_name, :email, :string, :null => true
Comments
Post a Comment