5bc58bac26
The TIMESTAMP data type is used for values that contain both date and time parts. TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC. A Forever lib class was included to handle future dates for PostgreSQL and MySQL, also changes were made to DeployToken to enforce Forever.date Also removes extra conditional from JwtController
10 lines
271 B
Ruby
10 lines
271 B
Ruby
class Projects::DeployTokensController < Projects::ApplicationController
|
|
before_action :authorize_admin_project!
|
|
|
|
def revoke
|
|
@token = @project.deploy_tokens.find(params[:id])
|
|
@token.revoke!
|
|
|
|
redirect_to project_settings_repository_path(project)
|
|
end
|
|
end
|