| 1 | # frozen_string_literal: true |
| 2 | |
| 3 | # Records which OAuth provider (if any) a user last signed in with, so |
| 4 | # Settings can show "Connected via GitHub/Google" for accounts that used the |
| 5 | # brokered social sign-in flow. Left blank for email/password-only accounts. |
| 6 | class AddOauthProviderToUsers < ActiveRecord::Migration[8.1] |
| 7 | def change |
| 8 | add_column :users, :oauth_provider, :string |
| 9 | end |
| 10 | end |