Sha256: c0ddfa6a2ced3e11a0e435a05fe8b5436412c671e876042f6642ce5981023def

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
ridgepole-0.7.3.beta lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.7.2 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.7.2.beta lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.7.1 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb
ridgepole-0.7.1.beta5 lib/ridgepole/ext/abstract_mysql_adapter/dump_auto_increment.rb