Sha256: 489ac9633baee8bfa06f524cc4172569e516b3bafee97373a1a35e84664fec73
Contents?: true
Size: 339 Bytes
Versions: 102
Compression:
Stored size: 339 Bytes
Contents
class SetupHitsCountCache < ActiveRecord::Migration[5.0] def up ActiveRecord::Base.connection.execute <<-SQL.squish UPDATE insights_facets SET hits_count = (SELECT count(1) FROM insights_hits WHERE insights_hits.host_id = insights_facets.host_id) SQL end end
Version data entries
102 entries across 102 versions & 1 rubygems