Sha256: 9da330e7dda35071d1acb0a89799f5cd5bf6cad06e09053455077f0df684a002

Contents?: true

Size: 340 Bytes

Versions: 4

Compression:

Stored size: 340 Bytes

Contents

module Nullalign
  class NonnullConstraint
    attr_reader :model, :table_name, :column
    def initialize(model, table_name, column)
      @model = model
      @table_name = table_name
      @column = column.to_s
    end

    def ==(other)
      self.table_name == other.table_name &&
        self.column == other.column
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nullalign-0.0.4 lib/nullalign/nonnull_constraint.rb
nullalign-0.0.3 lib/nullalign/nonnull_constraint.rb
nullalign-0.0.2 lib/nullalign/nonnull_constraint.rb
nullalign-0.0.1 lib/nullalign/nonnull_constraint.rb