class ActiveRecord::ConnectionAdapters::TableDefinition
Public Instance Methods
uuid(*args)
click to toggle source
# 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