class ActiveRecord::ConnectionAdapters::PostgreSQLRuleDefinition

Creates a PostgreSQL rule.

The PostgreSQL rule system is basically a query-rewriter. You should take a look at the PostgreSQL documentation for more details, but the basic idea is that a rule can be set to fire on certain query events and will force the query to be rewritten before it is even sent to the query planner and executor.

Generally speaking, you’re probably going to want to stick to create_rule and drop_rule when working with rules.

Constants

ACTIONS
EVENTS

Attributes

action[RW]
base[RW]
commands[RW]
event[RW]
name[RW]
options[RW]
table[RW]