Sha256: ce01b95487726b3e0a12ef041d5093639a39214f68ce2ff8866eb85b7c8f7db9
Contents?: true
Size: 421 Bytes
Versions: 50
Compression:
Stored size: 421 Bytes
Contents
module PactBroker module DB module DataMigrations module Helpers def column_exists?(connection, table, column) connection.table_exists?(table) && connection.schema(table).find{|col| col.first == column } end def columns_exist?(connection, table, columns) columns.all?{ | column | column_exists?(connection, table, column) } end end end end end
Version data entries
50 entries across 50 versions & 1 rubygems