Skip to content
Snippets Groups Projects
Unverified Commit de4f459a authored by Smriti Garg's avatar Smriti Garg
Browse files

Added rollback migration

parent 4667efc6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3,11 +3,13 @@
class ChangePersonalAccessTokensRemoveNotNullExpiresAt < Gitlab::Database::Migration[2.1]
disable_ddl_transaction!
 
CONSTRAINT_NAME = 'check_b8d60815eb'
def up
remove_not_null_constraint :personal_access_tokens, :expires_at
end
 
def down
# There may now be nulls in the table, so we cannot re-add the constraint here.
add_not_null_constraint :personal_access_tokens, :expires_at, validate: false, constraint_name: CONSTRAINT_NAME
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment