aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/sqlite3/schema_dumper.rb
blob: ab057c73f155186d5324c8e2d99220dc7962c27d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                             


                           
                                   




                                           



                                                   



         
# frozen_string_literal: true

module ActiveRecord
  module ConnectionAdapters
    module SQLite3
      module ColumnDumper # :nodoc:
        private

          def default_primary_key?(column)
            schema_type(column) == :integer
          end

          def explicit_primary_key_default?(column)
            column.bigint?
          end
      end
    end
  end
end