rails change_column_default instead of add column with default value code example Example: default value rails migration t.integer :col_name, :default => 0