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