class Dbsketch::Comparison::ComputedColumnDiff

Attributes

nullable[R]
order[R]
persisted[R]
query[R]

Public Class Methods

new(old_column, new_column, options) click to toggle source
Calls superclass method
# File lib/dbsketch/comparison/computed_column_comparator.rb, line 13
def initialize old_column, new_column, options
        super old_column, new_column
        if change?
                @query = Diff.new(old_column.query, new_column.query) if old_column.query != new_column.query
                @nullable = Diff.new(old_column.nullable, new_column.nullable) if old_column.nullable != new_column.nullable
                @order = Diff.new(old_column.order, new_column.order) if options[:compare_order] and old_column.order != new_column.order
                @persisted = Diff.new(old_column.persisted, new_column.persisted) if old_column.persisted != new_column.persisted
        end
end