class Dbsketch::Comparison::TableDiff
Attributes
check_constraints[R]
columns[R]
foreign_keys[R]
primary_key[R]
unique_constraints[R]
Public Class Methods
new(old_table, new_table, columns, primary_key, check_constraints, foreign_keys, unique_constraints)
click to toggle source
Calls superclass method
Dbsketch::Comparison::Diff::new
# File lib/dbsketch/comparison/table_comparator.rb, line 18 def initialize(old_table, new_table, columns, primary_key, check_constraints, foreign_keys, unique_constraints) super old_table, new_table ### Preconditions raise ArgumentError, "old_table is not a Dbsketch::Model::Table" unless nil == old_table or old_table.is_a? Dbsketch::Model::Table raise ArgumentError, "new_table is not a Dbsketch::Model::Table" unless nil == new_table or new_table.is_a? Dbsketch::Model::Table check_constraints.each_with_index { |diff, index| raise ArgumentError, "check_constraints[#{index}] is not a Dbsketch::Comparison::CheckConstraintDiff" unless diff.is_a? Dbsketch::Comparison::CheckConstraintDiff } ### @columns = columns @primary_key = primary_key @check_constraints = check_constraints @foreign_keys = foreign_keys @unique_constraints = unique_constraints end