bin/console in active_partition-0.5.0 vs bin/console in active_partition-0.6.0

- old
+ new

@@ -3,11 +3,11 @@ require "bundler/setup" require "active_partition" require "active_record" require "byebug" - +require "rails" def reload! files = $LOADED_FEATURES.select { |feat| feat =~ /\/active_partition\// } files.each { |file| load file } end @@ -33,9 +33,10 @@ class OutgoingEventsWebhook < ActiveRecord::Base include ActivePartition::Partitionable self.primary_key = "id" self.partitioned_by = "created_at" self.partition_range = 1.hour + 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_partition_count = 3 end