class AddRegulationsTimestampColumn < ActiveRecord::Migration
def change
t.datetime :invisible_at
add_column :your_model, :invisible_at, :datetime
end
end
class User < ActiveRecord::Base
include Lite::Regulations::Visibility
end
user = User.first
user.invisible!
user.invisible? #=> true
user.visible!
user.visible? #=> true
user.to_visibility #=> Returns the visibility state locale string (ex: Visible)
User.invisible # Returns all invisible records
User.visible # Returns all visible records