class AddRegulationsTimestampColumn < ActiveRecord::Migration
def change
t.datetime :quarantined_at
add_column :your_model, :quarantined_at, :datetime
end
end
class User < ActiveRecord::Base
include Lite::Regulations::Quarantine
end
user = User.first
user.unquarantine!
user.unquarantined? #=> true
user.quarantine!
user.quarantined? #=> true
user.to_quarantine #=> Returns the visibility state locale string (ex: Quarantined)
User.unquarantined # Returns all unquarantined records
User.quarantined # Returns all quarantined records