Skip to content

Instantly share code, notes, and snippets.

@jaimerson
Created August 1, 2016 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaimerson/c8eaaf3809e5144f9211088f1d9cc453 to your computer and use it in GitHub Desktop.
Save jaimerson/c8eaaf3809e5144f9211088f1d9cc453 to your computer and use it in GitHub Desktop.
Bikes report final form
class BikesReport < ActiveRecord::Base
def self.refresh
Scenic
.database
.refresh_materialized_view(table_name, concurrently: false)
end
def readonly?
true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment