Class: PgMeta::UniqueConstraint
- Inherits:
-
Constraint
- Object
- Node
- Constraint
- PgMeta::UniqueConstraint
- Defined in:
- lib/pg_meta/meta.rb
Instance Attribute Summary
Attributes inherited from Constraint
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(table, name, columns) ⇒ UniqueConstraint
constructor
A new instance of UniqueConstraint.
Methods inherited from Constraint
Methods inherited from Node
#dump, #dump_value, #guid, #inspect, #sid, #to_h, #to_s, #to_yaml, #uid
Constructor Details
#initialize(table, name, columns) ⇒ UniqueConstraint
Returns a new instance of UniqueConstraint.
456 457 458 459 |
# File 'lib/pg_meta/meta.rb', line 456 def initialize(table, name, columns) super table.unique_constraints[name] = self end |