‘-After running migration in the command line. Go to the migration file in db/[migration-file]
-insert default value using the following example
class AddConnectCodeToUsers < ActiveRecord::Migration[6.0]
def change
add_column :users, :connect_code, :integer, default: 0
end
end