class Nullalign::NonnullConstraint

Attributes

column[R]
model[R]
table_name[R]

Public Class Methods

new(model, table_name, column) click to toggle source
# File lib/nullalign/nonnull_constraint.rb, line 4
def initialize(model, table_name, column)
  @model = model
  @table_name = table_name
  @column = column.to_s
end

Public Instance Methods

==(other) click to toggle source
# File lib/nullalign/nonnull_constraint.rb, line 10
def ==(other)
  self.table_name == other.table_name &&
    self.column == other.column
end