Class: ActiveRecord::ConnectionAdapters::TableDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/so2db/extensions.rb

Instance Method Summary collapse

Instance Method Details

#uuid(*args) ⇒ Object



29
30
31
32
33
34
35
36
37
38
# File 'lib/so2db/extensions.rb', line 29

def uuid(*args)
  opts = args.extract_options!
  column_names = args
  type, default_opts  = @base.uuid

  # prefer the values provided by the user...
  options = default_opts.merge!(opts)

  column_names.each { |name| column(name, type, options) }
end