Last active
May 13, 2024 16:40
-
-
Save dgorodnichy/2397dea873f264742699cf082f06073b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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