Allow null slack uid for users creating accounts via email

This commit is contained in:
Max Wofford
2025-03-12 13:39:11 -04:00
parent 1de4e82d3f
commit 623b63d403
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
class AllowNullSlackUid < ActiveRecord::Migration[8.0]
def change
change_column_null :users, :slack_uid, true
end
end

4
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2025_03_12_160326) do
ActiveRecord::Schema[8.0].define(version: 2025_03_12_172534) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"
@@ -230,7 +230,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_160326) do
end
create_table "users", force: :cascade do |t|
t.string "slack_uid", null: false
t.string "slack_uid"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "username"