From 5875c625abc47708668da6f9c05fe7fcb82954da Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Tue, 2 Feb 2021 18:08:27 +0800 Subject: [PATCH] FIX set login column value ro ci_templates table --- .../20210202100517_add_login_default_to_ci_templates.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 db/migrate/20210202100517_add_login_default_to_ci_templates.rb diff --git a/db/migrate/20210202100517_add_login_default_to_ci_templates.rb b/db/migrate/20210202100517_add_login_default_to_ci_templates.rb new file mode 100644 index 000000000..840e55b03 --- /dev/null +++ b/db/migrate/20210202100517_add_login_default_to_ci_templates.rb @@ -0,0 +1,7 @@ +class AddLoginDefaultToCiTemplates < ActiveRecord::Migration[5.2] + def change + Ci::Template.find_each do |template| + template.update_column(:login, "admin") + end + end +end