how to change default value of column in rails migration code example
Example 1: rails migration add default value
change_column :users, :admin, :boolean, :default => false
Example 2: default value rails migration
t.integer :col_name, :default => 0