about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-02 18:02:48 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-03-02 18:02:48 +0100
commit425a6c90c44a620e5015cd659cf5d8e3bf68ee07 (patch)
tree1bb889bca498b07dd4f3a56a5690ea9c2f602382 /db/migrate
parent0b8fe020b599341d78cc03431eb156485c70ebea (diff)
parent462a6f7d721fa0717c5627fd0f0d73ee9ec5a675 (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20220227041951_add_last_used_at_to_oauth_access_tokens.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20220227041951_add_last_used_at_to_oauth_access_tokens.rb b/db/migrate/20220227041951_add_last_used_at_to_oauth_access_tokens.rb
new file mode 100644
index 000000000..6b46e60a8
--- /dev/null
+++ b/db/migrate/20220227041951_add_last_used_at_to_oauth_access_tokens.rb
@@ -0,0 +1,6 @@
+class AddLastUsedAtToOauthAccessTokens < ActiveRecord::Migration[6.1]
+  def change
+    add_column :oauth_access_tokens, :last_used_at, :datetime
+    add_column :oauth_access_tokens, :last_used_ip, :inet
+  end
+end