A 'flag' model

hi.

i want all my models to have a flag model associated to it.

for instance, this very page here, say i write some inappropriate.
there’s a link to flag this page.

the link would lead to a page that grabs the session of the controller,
action, and id, and throw it into a flag model with the columns:

flag_type, comment, user_id, controller, action, id, and timestamp

is this database design optimized? or does anyone recommend a better
way?
would using polymorphics be used in this case?

For a start, you may want to consider using an Observer. Perhaps you
have a class called FlagObserver which provides the necessary methods
to create, read, etc flags for any other model object. The
FlagObserver class definition will in turn state what other models it
will observe (duh) and on which event(s). :slight_smile:

-5mile