Module: Footing::PGTableDefinition
- Defined in:
- lib/extensions/postgresql_adapter.rb
Instance Method Summary collapse
-
#uuid(*args) ⇒ Object
Provides a uuid method when inside a migration’s create_table block.
Instance Method Details
#uuid(*args) ⇒ Object
Provides a uuid method when inside a migration’s create_table block.
13 14 15 16 17 |
# File 'lib/extensions/postgresql_adapter.rb', line 13 def uuid(*args) = args. #column(args[0], 'uuid default uuid_generate_v1()', options) column(args[0], 'uuid', ) end |