Exception: NcsNavigator::Warehouse::Transformers::Database::UnusedColumnsForModelError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ncs_navigator/warehouse/transformers/database.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unused) ⇒ UnusedColumnsForModelError

Returns a new instance of UnusedColumnsForModelError.



454
455
456
457
458
459
# File 'lib/ncs_navigator/warehouse/transformers/database.rb', line 454

def initialize(unused)
  super(
    "#{unused.size} unused column#{'s' unless unused.size == 1} when building model. " +
    "Use :ignored_columns => %w(#{unused.join(' ')}) or :on_unused => :ignore to suppress this error.")
  @unused = unused
end

Instance Attribute Details

#unusedObject

Returns the value of attribute unused.



452
453
454
# File 'lib/ncs_navigator/warehouse/transformers/database.rb', line 452

def unused
  @unused
end