From 9eb8d3269c066961bd44307d116cc27915995aa3 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 19 Jul 2019 17:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=81=E7=A7=BB=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/migrate/20190719091918_add_index_for_user_actions.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/20190719091918_add_index_for_user_actions.rb diff --git a/db/migrate/20190719091918_add_index_for_user_actions.rb b/db/migrate/20190719091918_add_index_for_user_actions.rb new file mode 100644 index 00000000..43282065 --- /dev/null +++ b/db/migrate/20190719091918_add_index_for_user_actions.rb @@ -0,0 +1,8 @@ +class AddIndexForUserActions < ActiveRecord::Migration + def up + add_index :user_actions, :ip + end + + def down + end +end