# File lib/taps/utils.rb, line 141 def single_integer_primary_key(db, table) table = table.to_sym.identifier unless table.kind_of?(Sequel::SQL::Identifier) keys = db.schema(table).select { |c| c[1][:primary_key] and c[1][:type] == :integer } not keys.nil? and keys.size == 1 end