Skip to content

Commit

Permalink
Add migration for initial indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
mirrec committed Sep 13, 2023
1 parent a004868 commit b0e4d90
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions db/migrate/20230913122730_index_message_threads.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class IndexMessageThreads < ActiveRecord::Migration[7.0]
def up
say_with_time("Indexing MessageThreads") do
Searchable::MessageThread.reindex_all
end
end

def down
end
end
2 changes: 1 addition & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0e4d90

Please sign in to comment.