From d5513dff4f95a1030242a3c3be3f63fbf943306a Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 19 Jul 2019 18:38:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20190718005920_modify_type_for_user_agents.rb | 2 +- db/migrate/20190719062616_add_ip_for_user_actions.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db/migrate/20190718005920_modify_type_for_user_agents.rb b/db/migrate/20190718005920_modify_type_for_user_agents.rb index 72d4f99b..4d9587ec 100644 --- a/db/migrate/20190718005920_modify_type_for_user_agents.rb +++ b/db/migrate/20190718005920_modify_type_for_user_agents.rb @@ -1,6 +1,6 @@ class ModifyTypeForUserAgents < ActiveRecord::Migration def up - rename_column :user_agents, :type, :agent_type + # rename_column :user_agents, :type, :agent_type end def down diff --git a/db/migrate/20190719062616_add_ip_for_user_actions.rb b/db/migrate/20190719062616_add_ip_for_user_actions.rb index d1297176..59b41dee 100644 --- a/db/migrate/20190719062616_add_ip_for_user_actions.rb +++ b/db/migrate/20190719062616_add_ip_for_user_actions.rb @@ -1,8 +1,8 @@ class AddIpForUserActions < ActiveRecord::Migration def up - add_column :user_actions, :ip, :string - - UserAgent.where("agent_type is null").update_all(:agent_type => 1) + # add_column :user_actions, :ip, :string + # + # UserAgent.where("agent_type is null").update_all(:agent_type => 1) end def down