Sha256: b9839d13fca8b41f5f9ea901ea6f9f1b690a7beb4c04d8ea692e1e6d9cb7856b

Contents?: true

Size: 548 Bytes

Versions: 46

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

require 'active_record/connection_adapters/abstract_mysql_adapter'

module Ridgepole
  module Ext
    module AbstractMysqlAdapter
      module DumpAutoIncrement
        def prepare_column_options(column)
          spec = super
          spec[:auto_increment] = 'true' if column.auto_increment?
          spec
        end
      end
    end
  end
end

module ActiveRecord
  module ConnectionAdapters
    class AbstractMysqlAdapter
      prepend Ridgepole::Ext::AbstractMysqlAdapter::DumpAutoIncrement
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
ridgepole-3.0.0 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-2.1.1 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-2.1.0 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-2.0.3 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-2.0.2 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-2.0.1 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-2.0.0 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-2.0.0.beta2 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-2.0.0.beta lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-1.2.1 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-1.2.0 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-1.1.0 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-1.0.7 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-1.0.6 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-1.0.5 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-1.0.4 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-1.0.3 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-1.0.2 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-1.0.2.beta lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-1.0.1 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb