Class: ActiveRecord::ConnectionAdapters::TableDefinition
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::TableDefinition
- 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. column_names = args type, default_opts = @base.uuid # prefer the values provided by the user... = default_opts.merge!(opts) column_names.each { |name| column(name, type, ) } end |