Skip to content

Commit

Permalink
Migration to add default field to users (#1208)
Browse files Browse the repository at this point in the history
* Migration to add default field to users

* Fix so that we budget for multiple returns, as sf acct id isn't a key anymore

* Just the migration script

* Changed name from default to default_config

* changing name of field
  • Loading branch information
keshavc-stripe authored Oct 4, 2023
1 parent 695eebb commit 84b4c9e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions migrations/003_add_default_to_user_table.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Usage: bundle exec sequel -E -m migrations $DATABASE_URL

# frozen_string_literal: true
# typed: false

require 'sequel'

Sequel.migration do
up do
add_column :users, :is_default_account_config, :boolean, default: true, null: false
end

down do
drop_column :users, :is_default_account_config
end
end

0 comments on commit 84b4c9e

Please sign in to comment.