Sha256: 1270e0d1ab7fa5e395a225b0ecfada728854bafc00a6c2b6b8ae8ae04b62fc62
Contents?: true
Size: 582 Bytes
Versions: 7
Compression:
Stored size: 582 Bytes
Contents
require 'active_record/connection_adapters/abstract/schema_dumper' module ActiveRecord module ConnectionAdapters # :nodoc: module ColumnDumper def options_for_column_spec(table_name) { table_name: table_name } end def column_spec_for_primary_key(column, options) return if column.type == :integer spec = { id: column.type.inspect } spec.merge!(prepare_column_options(column, options).delete_if { |key, _| [:name, :type].include?(key) }) end def table_options(table_name) nil end end end end
Version data entries
7 entries across 7 versions & 1 rubygems