Class: ActiveRecord::SchemaMigration

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/ibm_db_adapter.rb

Class Method Summary collapse

Class Method Details

.create_tableObject



39
40
41
42
43
44
45
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 39

def create_table
  return if connection.table_exists?(table_name)

  connection.create_table(table_name, id: false) do |t|
    t.string :version, **connection.internal_string_options_for_primary_key
  end
end