Maintaining flag_shih_tzu
Bit Fields for Active Record What is a bit field? https://en.wikipedia.org/wiki/Bit_field
What is a bitwise operation? https://en.wikipedia.org/wiki/Bitwise_operation
flag_shih_tzu supports both :bit_operator and :in_list query modes, but only :in_list can will utilize a database index.
What does it look like? class Lead < ActiveRecord::Base include FlagShihTzu has_flags 1 => :warm_up_email_sent, 2 => :follow_up_call_made, 3 => :final_email_sent, 4 => :appointment_scheduled, 5 => :not_interested, # You can specify use any integer column to use for flags!