diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-06 19:23:45 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-04-07 05:20:17 +0300 |
commit | 18a1569319af918fe3aff7564e344143d04d6aca (patch) | |
tree | 3e52875f9b67abbdf4f3dd6be7b7d8e05963a788 /db/migrate/20180319190020_create_deploy_tokens.rb | |
parent | 8c276580431a750a3141f2ec57690da844a75ac4 (diff) |
Handles default expires_at date directly into DeployToken model
Diffstat (limited to 'db/migrate/20180319190020_create_deploy_tokens.rb')
-rw-r--r-- | db/migrate/20180319190020_create_deploy_tokens.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20180319190020_create_deploy_tokens.rb b/db/migrate/20180319190020_create_deploy_tokens.rb index b8f77f5ae17..318ad3f0610 100644 --- a/db/migrate/20180319190020_create_deploy_tokens.rb +++ b/db/migrate/20180319190020_create_deploy_tokens.rb @@ -7,7 +7,7 @@ class CreateDeployTokens < ActiveRecord::Migration t.boolean :read_repository, null: false, default: false t.boolean :read_registry, null: false, default: false - t.datetime_with_timezone :expires_at, null: false, default: '3000-01-01' + t.datetime_with_timezone :expires_at, null: false t.datetime_with_timezone :created_at, null: false t.string :name, null: false |