Skip to content

Commit 8345ad6

Browse files
committed
feat: added a blocked at timestamp for user
1 parent 43ba863 commit 8345ad6

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
class AddBlockedAtToUser < Code0::ZeroTrack::Database::Migration[1.0]
4+
def change
5+
add_column :users, :blocked_at, :datetime_with_timezone
6+
end
7+
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
44c4c37556cf0ad71c2d513d41beb2418ee79de270cbcab149e679ca0a5a9876

db/structure.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,7 @@ CREATE TABLE users (
11631163
totp_secret text,
11641164
email_verified_at timestamp with time zone,
11651165
readme text,
1166+
blocked_at timestamp with time zone,
11661167
CONSTRAINT check_11461c37fb CHECK ((char_length(readme) <= 5000)),
11671168
CONSTRAINT check_3bedaaa612 CHECK ((char_length(email) <= 255)),
11681169
CONSTRAINT check_56606ce552 CHECK ((char_length(username) <= 50)),

0 commit comments

Comments
 (0)