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-1.0.0 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.9.6 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.9.5 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.9.4 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.9.3 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.9.2 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.9.1 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.9.0 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.8.13 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.9.0.rc1 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.9.0.beta lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.8.12 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.8.11 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.8.10 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.8.9 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.8.8 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.8.7 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.8.6 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.8.5 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.8.4 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb