lib/pgslice/table.rb in pgslice-0.4.3 vs lib/pgslice/table.rb in pgslice-0.4.4
- old
+ new
@@ -40,9 +40,11 @@
case period
when "day"
8
when "month"
6
+ when "year"
+ 4
else
"6,8"
end
existing_tables(like: "#{table}_%").select { |t| /\A#{Regexp.escape("#{table}_")}\d{#{count}}\z/.match(t) }