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 | |
parent | 8c276580431a750a3141f2ec57690da844a75ac4 (diff) |
Handles default expires_at date directly into DeployToken model
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180319190020_create_deploy_tokens.rb | 2 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/db/schema.rb b/db/schema.rb index b0174a4ed46..a50c5fba969 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -687,7 +687,7 @@ ActiveRecord::Schema.define(version: 20180405142733) do t.boolean "revoked", default: false t.boolean "read_repository", default: false, null: false t.boolean "read_registry", default: false, null: false - t.datetime_with_timezone "expires_at", default: '3000-01-01 00:00:00', null: false + t.datetime_with_timezone "expires_at", null: false t.datetime_with_timezone "created_at", null: false t.string "name", null: false t.string "token", null: false |