Skip to content

Instantly share code, notes, and snippets.

@dgorodnichy
Last active May 13, 2024 16:40
Show Gist options
  • Save dgorodnichy/2397dea873f264742699cf082f06073b to your computer and use it in GitHub Desktop.
Save dgorodnichy/2397dea873f264742699cf082f06073b to your computer and use it in GitHub Desktop.
class FilmRating < ApplicationRecord
self.primary_key = :id
def self.refresh
Scenic.database.refresh_materialized_view(table_name, concurrently: false, cascade: false)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment