bin/console in active_partition-0.6.0 vs bin/console in active_partition-0.7.0
- old
+ new
@@ -32,14 +32,14 @@
class OutgoingEventsWebhook < ActiveRecord::Base
include ActivePartition::Partitionable
self.primary_key = "id"
self.partitioned_by = "created_at"
- self.partition_range = 1.hour
+ self.partition_range = 1.month
self.partition_start_from = DateTime.new(2021, 1, 1)
# You can choose 1 of the following 2 options
- self.retention_period = 1.day
+ self.retention_period = 1.month
self.retention_partition_count = 3
end
OutgoingEvent.establish_connection(ENV["DATABASE_URL"])
OutgoingEventsWebhook.establish_connection(ENV["DATABASE_URL"])