I added new migration that add a new column to a table. I ran the command 'rake db:migrate' Then I realize that I forgot to add a default value. How can I add default value after the rake db:migrate? (I'm storing the server on heroku service)
2 Answers
Create another migration
change_column :users, :admin, :boolean, :default => false
Same question as Add a default value to a column through a migration