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