diff --git a/db/migrate/20190719062616_add_ip_for_user_actions.rb b/db/migrate/20190719062616_add_ip_for_user_actions.rb deleted file mode 100644 index 59b41dee..00000000 --- a/db/migrate/20190719062616_add_ip_for_user_actions.rb +++ /dev/null @@ -1,10 +0,0 @@ -class AddIpForUserActions < ActiveRecord::Migration - def up - # add_column :user_actions, :ip, :string - # - # UserAgent.where("agent_type is null").update_all(:agent_type => 1) - end - - def down - end -end diff --git a/db/migrate/20190719062617_add_ip_for_user_actions.rb b/db/migrate/20190719062617_add_ip_for_user_actions.rb new file mode 100644 index 00000000..d1297176 --- /dev/null +++ b/db/migrate/20190719062617_add_ip_for_user_actions.rb @@ -0,0 +1,10 @@ +class AddIpForUserActions < ActiveRecord::Migration + def up + add_column :user_actions, :ip, :string + + UserAgent.where("agent_type is null").update_all(:agent_type => 1) + end + + def down + end +end