Class: Sequel::Vertica::CreateTableGenerator
- Inherits:
-
Schema::CreateTableGenerator
- Object
- Schema::CreateTableGenerator
- Sequel::Vertica::CreateTableGenerator
- Defined in:
- lib/sequel/adapters/vertica.rb
Instance Method Summary collapse
Instance Method Details
#primary_key(name, *args) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/sequel/adapters/vertica.rb', line 8 def primary_key(name, *args) super if @primary_key[:auto_increment] @primary_key.delete(:auto_increment) @primary_key[:type] = Vertica::Database::AUTO_INCREMENT end @primary_key end |