lib/timescaledb/migration_helpers.rb in timescaledb-0.2.3 vs lib/timescaledb/migration_helpers.rb in timescaledb-0.2.4
- old
+ new
@@ -78,10 +78,10 @@
WITH (timescaledb.continuous) AS
#{query.respond_to?(:to_sql) ? query.to_sql : query}
WITH #{"NO" unless options[:with_data]} DATA;
SQL
- create_continuous_aggregate_policy(table_name, options[:refresh_policies] || {})
+ create_continuous_aggregate_policy(table_name, **(options[:refresh_policies] || {}))
end
# Drop a new continuous aggregate.
#