Module: Augmentor::SchemaDefinitions::AugmentMethod

Defined in:
lib/augmentor.rb

Instance Method Summary collapse

Instance Method Details

#augment(*args) ⇒ Object



74
75
76
77
78
79
# File 'lib/augmentor.rb', line 74

def augment(*args)
  options = (args.extract_options!).merge({index:true})
  args.each do |col|
    column("#{col}_id", :integer, options)
  end
end