Sha256: bb9a7678f8fe7eb0b494596c2194479d98ab5db8338f6fad920de039787fd1a9

Contents?: true

Size: 274 Bytes

Versions: 61

Compression:

Stored size: 274 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
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
pact_broker-2.76.2 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.76.1 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.76.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.75.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.74.1 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.74.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.73.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.72.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.71.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.70.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.69.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.68.1 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.68.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.67.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.66.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.65.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.64.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.63.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.62.0 lib/pact_broker/db/data_migrations/helpers.rb
pact_broker-2.61.0 lib/pact_broker/db/data_migrations/helpers.rb