Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2022-02-28 00:45:40 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2022-02-28 01:06:24 +0300
commit36778dbeacd3dbe78299e1e3dbd941342fbf37a4 (patch)
treea69a2fd0a5dfa3f854ec75f4938739df71e1db0b /db
parent7e889f71ebde1e83c8ce550c7aede5d3f43c141e (diff)
Remove /user/auth_token route, this was a leftover from the chat
Also remove authentication_token from database
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20220227215443_remove_authentication_token_from_users.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20220227215443_remove_authentication_token_from_users.rb b/db/migrate/20220227215443_remove_authentication_token_from_users.rb
new file mode 100644
index 000000000..f87a2b8e1
--- /dev/null
+++ b/db/migrate/20220227215443_remove_authentication_token_from_users.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+class RemoveAuthenticationTokenFromUsers < ActiveRecord::Migration[5.2]
+ def change
+ remove_index :users, column: :authentication_token, name: :index_users_on_authentication_token, unique: true
+ remove_column :users, :authentication_token, :string, limit: 30
+ end
+end