class DBLeftovers::Constraint
Attributes
check[RW]
constraint_name[RW]
on_table[RW]
Public Class Methods
new(constraint_name, on_table, check)
click to toggle source
# File lib/db_leftovers/constraint.rb, line 6 def initialize(constraint_name, on_table, check) @constraint_name = constraint_name.to_s @on_table = on_table.to_s @check = check end
Public Instance Methods
equals(other)
click to toggle source
# File lib/db_leftovers/constraint.rb, line 12 def equals(other) other.constraint_name == constraint_name and other.on_table == on_table and other.check == check end
to_s()
click to toggle source
# File lib/db_leftovers/constraint.rb, line 18 def to_s "<#{@constraint_name}: #{@on_table} CHECK (#{@check})>" end