Module: Timescaledb::Scenic::MigrationHelpers

Defined in:
lib/timescaledb/scenic/extension.rb

Instance Method Summary collapse

Instance Method Details

#create_scenic_continuous_aggregate(name) ⇒ Object

Create a timescale continuous aggregate view



62
63
64
# File 'lib/timescaledb/scenic/extension.rb', line 62

def create_scenic_continuous_aggregate(name)
  ::Scenic.database.create_view(name, materialized: true, no_data: true, with: "timescaledb.continuous")
end