From 841129a0ea0691cecb1d566928c6eabab871819f Mon Sep 17 00:00:00 2001 From: ArtOfCode- <hello@artofcode.co.uk> Date: Mon, 1 Jun 2020 12:33:05 +0100 Subject: [PATCH] Index last activity --- db/migrate/20200601113238_add_index_to_last_activity.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20200601113238_add_index_to_last_activity.rb diff --git a/db/migrate/20200601113238_add_index_to_last_activity.rb b/db/migrate/20200601113238_add_index_to_last_activity.rb new file mode 100644 index 000000000..25d594883 --- /dev/null +++ b/db/migrate/20200601113238_add_index_to_last_activity.rb @@ -0,0 +1,5 @@ +class AddIndexToLastActivity < ActiveRecord::Migration[5.2] + def change + add_index :posts, :last_activity + end +end -- GitLab