From 008c4ea5238c3a2452077f110042133b6611c3c1 Mon Sep 17 00:00:00 2001 From: goruchan Date: Mon, 8 Jul 2024 23:13:35 +0900 Subject: [PATCH] =?UTF-8?q?Rubocop=20=E5=AF=BE=E5=BF=9C=E3=82=82=E3=82=8C?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/data/20240704140358_add_articles_with_secure_token.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/db/data/20240704140358_add_articles_with_secure_token.rb b/db/data/20240704140358_add_articles_with_secure_token.rb index 77536bdbc08..57898dcca1b 100644 --- a/db/data/20240704140358_add_articles_with_secure_token.rb +++ b/db/data/20240704140358_add_articles_with_secure_token.rb @@ -1,8 +1,6 @@ # frozen_string_literal: true class AddArticlesWithSecureToken < ActiveRecord::Migration[6.1] - disable_ddl_transaction! - def up Article.where(wip: true).find_each do |article| article.update!(token: SecureRandom.urlsafe_base64)