def update_counter(period_type)
      column_from, column_to = self.class.columns_to_shift(period_type)
      return unless column_from && column_to

      self.update_attributes({
        column_to => self[column_from],
        column_from => 0
      })
    end
def update_counter(period_type)
      column_from, column_to = self.class.columns_to_shift(period_type)
      return unless column_from && column_to

      self.update_attributes({
        column_to => self[column_from],
        column_from => 0
      })
    end
Public: Rotate the counter value for the period_type

 * period_type:
   :daily   #=> daily rotation
   :weekly  #=> weekly rotation
   :monthly #=> monthly rotation